Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open word file(.doc) when click on button

Status
Not open for further replies.

saketbansal

IS-IT--Management
Jul 2, 2003
41
Hello everybody!

Can anyone tell me how to open the MS-Word file.
I want when i click the button the Word is opened with the named file.
Thats it!
Thanks!

Saket
 
Thanks

What is DDE.I will try the package u suggested.If i have problem then will tell u.

Thanks again!
 
DDE is a name of Forms built-in package, you may find its description in online help.
DDE stands for Dynamic Data Exchange.

Regards, Dima
 
Hi,
Make use of following code.
Regards
Himanshu
Code:
Begin  
    AppID := DDE.App_Begin(L_BROWSER||' '||L_SERVER||'\MYDOCUMENT.DOC',DDE.App_Mode_Maximized);
         P_RUNCODE := 1;
/**L_BROWSER can be replaced with the name of Executable file, in your case winword.exe along with complete path or & L_BROWSER is the Location of Doc file**/
Exception
   WHEN DDE.DDE_APP_FAILURE     then
    Message('E: Error while opening  Document.',NO_ACKNOWLEDGE);
   Raise Form_Trigger_failure;               
end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top