Home » Developer & Programmer » Forms » open pdf file from a form
open pdf file from a form [message #433982] Sun, 06 December 2009 03:53 Go to next message
kuwait
Messages: 52
Registered: October 2007
Member
Hi

I've a button on a form and I wrote a trigger when button pressed to open a pdf file and it worked fine this was my code:

declare
   AppID PLS_INTEGER;

begin

   AppID := DDE.App_Begin('C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe Z:\BUILTINS.pdf',DDE.APP_MODE_NORMAL);

end;


The thing is this form is used by multiple clients and if a user has a different version of acrobat reader rather than version 8 this will not work how to do it to be uniform?

Thanks
Re: open pdf file from a form [message #433996 is a reply to message #433982] Sun, 06 December 2009 05:15 Go to previous messageGo to next message
kuwait
Messages: 52
Registered: October 2007
Member
I solved the problem I used and made a .Bat file and called it in the form

Host('Y:\open.bat "'||'Z:\BUILTINS.pdf'||'" /C');

and it worked fine

Thanks
Re: open pdf file from a form [message #437519 is a reply to message #433996] Mon, 04 January 2010 22:05 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Did you try using 'web.show_document'?

David
Re: open pdf file from a form [message #452916 is a reply to message #437519] Mon, 26 April 2010 04:27 Go to previous messageGo to next message
dillango
Messages: 145
Registered: January 2008
Senior Member
I could open PDF file through forms 6i. I am getting an oracle exception erro - 106500
Re: open pdf file from a form [message #453431 is a reply to message #452916] Wed, 28 April 2010 23:46 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Post your code.

David
Re: open pdf file from a form [message #453599 is a reply to message #433982] Thu, 29 April 2010 21:39 Go to previous message
Kaeluan
Messages: 179
Registered: May 2005
Location: Montreal, Quebec
Senior Member
You can try something like this

host('rundll32 url.dll,FileProtocolHandler c:\test.pdf')

This will use the OS setting for the file extension and will open it with the good program.

Hope it help
Previous Topic: when-timer-expired
Next Topic: Hijacked - Re: To open word document/excel/pdf from Oracle forms
Goto Forum:
  


Current Time: Tue Sep 27 07:35:04 CDT 2016

Total time taken to generate the page: 0.10203 seconds