how to call pdf file in form without specify reader path [message #504686] |
Wed, 27 April 2011 06:38 |
|
Motasem
Messages: 3 Registered: April 2011 Location: Jordan
|
Junior Member |
|
|
I need to call pdf file in oracle form 6i without specify the path of adobe acrobat reader .
how to do that?
i.e.:
AppID := DDE.App_Begin(<path where you have winword.exe in your system> <path of the document you wish to open>,DDE.APP_MODE_NORMAL);
i dont need to write ths part
<path where you have winword.exe in your system>
that because in our company we have several virgins of acrobat reader and i really need to call pdf file and make the call statement public
thank you.
[Updated on: Wed, 27 April 2011 07:42] Report message to a moderator
|
|
|
|
|
|
Re: how to call pdf file in form without specify reader path [message #511077 is a reply to message #506234] |
Thu, 09 June 2011 09:06 |
|
martorell
Messages: 1 Registered: June 2011 Location: Brazil
|
Junior Member |
|
|
Try reading path at the registry.
For Excel:
excel_path := Win_Api_Environment.Read_Registry('HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\EXCEL.EXE\shell\Open\command',NULL,TRUE);
excel_path := rtrim(substr(excel_path, 1, instr(excel_path, '/', 1, 1)-1));
appid := dde.app_begin(excel_path||' '||p_path_spreadsheet||p_spreadsheet, dde.app_mode_minimized );
|
|
|