Pdf file exist or not. [message #415749] |
Wed, 29 July 2009 02:11 |
|
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..
|
|
|
|