Home » Developer & Programmer » Forms » insert data to ms word (form 6i)
insert data to ms word [message #355697] Mon, 27 October 2008 02:11 Go to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
do you know how to communicate or put data to ms word...

how about to get data from a word document...
Re: insert data to ms word [message #356215 is a reply to message #355697] Thu, 30 October 2008 00:25 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Search this forum for 'word', also 'rundll32'.

David
Re: insert data to ms word [message #356255 is a reply to message #355697] Thu, 30 October 2008 01:43 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
declare

AppID PLS_INTEGER;

begin
--i got it ...

--i just pass these paramaters
--so i created a rich text format instead of a usual report.. --then save it to drive c:\ filename quote.rtf....

Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'RTF');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,'c:\QUOTE.RTF');



--then lastly i will open it using ms word so the path will
--depend on the location of ms word installed in your system..


RUN_PRODUCT(REPORTS,'QUOTE',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
AppID := DDE.App_Begin('C:\Program Files\Microsoft Office 2K\Office\winword.exe c:\QUOTE.RTF' ,DDE.App_Mode_maximized);
end;

[Updated on: Thu, 30 October 2008 01:44]

Report message to a moderator

Re: insert data to ms word [message #356474 is a reply to message #356255] Thu, 30 October 2008 20:31 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
See. If you had posted the code that you WERE using we could have told you that.

David
Previous Topic: how to use windows media ocx in form 6i
Next Topic: webutil
Goto Forum:
  


Current Time: Mon Feb 03 14:51:10 CST 2025