Home » Developer & Programmer » Forms » Pdf file exist or not. (Oracle Forms [32 Bit] Version , Windows XP)
Pdf file exist or not. [message #415749] Wed, 29 July 2009 02:11 Go to next message
Messages: 118
Registered: June 2007
Location: Cochin ( INDIA )
Senior Member

Dear All,

I saved a report output as pdf in one of the folder in server using RUN_REPORT_OBJECT command.

and I'm able to display the pdf file in my browser using WEB.SHOW_DOCUMENT .

my code is like this


Now, before opening the file ,I have to check if the particular file exists or not.
If the file exist , open it using WEB.SHOW_DOCUMENT.
If not , open some other file.

How can I check if a file exist or not.

Thanks in advance..
Re: Pdf file exist or not. [message #415951 is a reply to message #415749] Wed, 29 July 2009 22:34 Go to previous message
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Do a 'dir > myfile.txt' in a 'host' command and then read 'myfile.txt' with 'text_io'.

Previous Topic: How to change ICON of the Forms 6i MDI window
Next Topic: adding an urdu filed in form
Goto Forum:

Current Time: Thu Oct 20 16:29:07 CDT 2016

Total time taken to generate the page: 0.06889 seconds