Home » Developer & Programmer » Forms » Open PDF Files (Oracle Forms 10g, Win XP)
Open PDF Files [message #488049] Tue, 04 January 2011 06:38 Go to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Hi,

I have a PDF files in my file Server, i want to open it through Forms 10g, pls suggest me how to open it.

Regards,
Suresh.V

[EDITED by LF: fixed topic title typo; was "oepn"]

[Updated on: Tue, 04 January 2011 09:20] by Moderator

Report message to a moderator

Re: Oepn PDF Files [message #488050 is a reply to message #488049] Tue, 04 January 2011 06:58 Go to previous messageGo to next message
yeahia
Messages: 22
Registered: June 2010
Location: Bangladesh
Junior Member
i have gigen an example which i have used in my developer 6i forms. try with this.
begin
appID:=dde.app_begin('C:\Adobe\AcroRd32.exe c:\yarn_label.pdf', dde.app_mode_maximized);
end;

here 'C:\Adobe\AcroRd32.exe' means where the acrobat is installed and executable file located and
'c:\yarn_label.pdf' means where the pdf file located.

yeahia
Re: Oepn PDF Files [message #488052 is a reply to message #488050] Tue, 04 January 2011 07:13 Go to previous messageGo to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Hi,

Thanks for your reply, your suggestion will work only in forms 6i, not in 10g forms. one more thing i want to open a "Server PDF" file from client application.

Regards,
Suersh.V

[Updated on: Tue, 04 January 2011 07:28]

Report message to a moderator

Re: Oepn PDF Files [message #488791 is a reply to message #488052] Tue, 11 January 2011 03:02 Go to previous messageGo to next message
sohailmoon
Messages: 3
Registered: January 2011
Location: Rahim Yar Khan
Junior Member
Well , what should be done if we want to store the pdf file inside the database and then open that,

I means the maximum utilization of the database instead to store the file any where else ?

Please help out me
Re: Open PDF Files [message #489375 is a reply to message #488049] Sat, 15 January 2011 06:40 Go to previous messageGo to next message
colla
Messages: 36
Registered: January 2010
Location: ksa
Member
hi infosuresh2k

simply create a new button with a trigger When-Button-Pressed
and you can use any one of the following code to open your pdf
file

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

or

host('c:\file_name.pdf');

or

host ( 'cmd /C start c:\file_name.pdf');

please check your path and file name will

good luck

[Updated on: Sat, 15 January 2011 06:41]

Report message to a moderator

Re: Open PDF Files [message #489396 is a reply to message #489375] Sat, 15 January 2011 11:35 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
The problem is that in Forms 10g (used by the OP, as indicated in the topic title) HOST executes on a server, not a client. So, your example's use is kind of limited.

Oracle's Webutil, though, offers CLIENT_HOST which might be used instead.
Re: Open PDF Files [message #489405 is a reply to message #489396] Sat, 15 January 2011 12:03 Go to previous messageGo to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Hi Littlefoot,

Thanks for your suggestions, my actual requirement is like we are storing PDF files in one separate server those PDF's are generated by some other front end programs and stored in a file server.

We want to access that file server shared folder and open those PDF's from client webforms.

CLIENT_HOST will open only client files.

Currently what we are doing is, just copying the files using webutil_file_transfer(AS_TO_CLIENT) to client temp folder then opening the PDF's using WebUtil_Host.NonBlocking bcz if we use CLIENT_HOST then webform is hanging once we close opened PDF then webform is working.

is that any other simple method available to open a PDF from oracle forms, that is stored in file server?

Regards,
Suresh.V
Re: Open PDF Files [message #489406 is a reply to message #489405] Sat, 15 January 2011 12:14 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
A "server" is an "application server". As files are stored on another ("file") server, you might try to map a directory (so that file server's directory (that contains PDF files) is accessible to an application server. Then run the HOST command. Supply the correct path (which would be a mapped directory).

I didn't try it so I can't tell whether it will work or not, but I *hope* it might.
Re: Open PDF Files [message #489419 is a reply to message #489396] Sun, 16 January 2011 01:07 Go to previous messageGo to next message
colla
Messages: 36
Registered: January 2010
Location: ksa
Member
you are right HOST executes on a server, not a client that's because i only read his first message, look to his requirement in the first message

Quote:
I have a PDF files in my file Server, i want to open it through Forms 10g, pls suggest me how to open it.


my mistake I did not read the second message, this part

Quote:
one more thing i want to open a "Server PDF" file from client application.


thanks

[Updated on: Sun, 16 January 2011 01:09]

Report message to a moderator

Re: Open PDF Files [message #490249 is a reply to message #489419] Sun, 23 January 2011 02:02 Go to previous message
deepakmannazhi
Messages: 137
Registered: February 2010
Location: Dubai, UAE
Senior Member

Dera suresh,
Try web.show_document, it will help you.

web.show_document (v_url || v_file, '_blank');


Regards
Deepak
Previous Topic: demo not working.
Next Topic: icons not showing in safari browser on mac os client
Goto Forum:
  


Current Time: Tue Sep 17 16:23:05 CDT 2024