mibuso.com

Microsoft Business Solutions online community
It is currently Wed May 22, 2013 3:17 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to open WordPad and Store data in Blob field
PostPosted: Wed Aug 15, 2007 6:12 pm 
Offline

Joined: Wed Aug 15, 2007 6:05 pm
Posts: 8
Location: LA
Country: United States (us)
Hi Experts,

I am new to Navision. Could you please help me out its kinda urgent. And i have no clue how to do that.

I am working in Nav 5.0, so what i have to do, is to create a table with following fields

ID, FileData (blob field)

So now when i click the FileData, system opens up a WordPad file. Then when i enter data in that file and save it, it is saved in that table field.

I have seen NaviPad that could be a good option but we dont have to provide any dll to our clients. Could you please tell me what should i do.

Thanks in Advance
P.Edward


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 11:18 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Fri Jun 11, 2004 9:05 pm
Posts: 4858
Location: Los Angeles, CA
Country: United States (us)
Check the downloads section. There's a program (for free) that Waldo wrote that will allow you to attach notepad or wordpad into Navision.

_________________
Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 2:18 am 
Offline

Joined: Wed Aug 15, 2007 6:05 pm
Posts: 8
Location: LA
Country: United States (us)
I have already tried out waldo, navision pad and stuff.
But its not something i am looking for... i dont want my client to register the dll.

I am already using Navision pad but i want to avoid that client installation. So whats the work around.

How do i register the .dll at runtime.

Thanks,
P.Edward


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 8:12 am 
Offline

Joined: Mon Mar 08, 2004 2:42 pm
Posts: 3255
Location: Hannover
Country: Germany (de)
How to register dll at runtime :?:

Store the dll into an table (BLOB) before you run the function that calls the dll check in tabel Automation Server if your dll is registred on local machine

like this:

Code: Select all
if not MyAutomationFunction('@*My DLL Name*') then begin
  IF ISCLEAR(WshShell) THEN
    CREATE(WshShell);

  Stream Out the data from Blob Field to envirion('Temp') + 'DLLName' + '.dll'
  //if you need the output text
  //WshExec := WshShell.Exec('regsvr32 <path & filename of dll or ocx that you stream out>');

  //if you need info if installation success
  Variant1 := 0;
  Variant2 := TRUE;
  INTVAR := WshShell.Run('regsvr32 <path & filename of dll or ocx>',Variant1,Variant2);

  if IntVar = 1 then
    error('Error durin installation of %1. Ask you Navision guru',YOURDLLNAME);
end;

MyAutomationFunction(Parameter Text 250)
AutomationServer.RESET;
AutomationServer.SETfilter(Name,'%1',Parameter);
EXIT(not AutomationServer.ISEMPTY);

_________________
Do you make it right, it works too!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Daniel Compton and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: