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: Surges Bay TAS Australia
Senior Member
Account Moderator
Do a 'dir > myfile.txt' in a 'host' command and then read 'myfile.txt' with 'text_io'.

Previous Topic: Reading data from Serial port: Exception 305500 Un-handled
Next Topic: compilation error
Goto Forum:

Current Time: Sun Aug 20 08:44:48 CDT 2017

Total time taken to generate the page: 0.03987 seconds