Home » Developer & Programmer » Forms » Pdf file exist or not. (Oracle Forms [32 Bit] Version 9.0.4.0.19 , Windows XP)
Pdf file exist or not. [message #415749] Wed, 29 July 2009 02:11 Go to next message
sasipalarivattom
Messages: 121
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

web.show_document('http://192.168.1.522:8889/forms90/reppdf/9982.pdf','_blank');


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
djmartin
Messages: 10181
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'.

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


Current Time: Fri Sep 20 09:41:35 CDT 2024