Subject Re: Active X
From <> <<>>
Date Thu, 18 Jul 2019 10:00:25 -0400
Newsgroups dbase.getting-started

getFile() returns the full path so specifying the full path *should* work.
3 things come to mind, one the file doesn't exist where you think it should
the file is bad or  your activeX doesn't like the space in the filename.
Try opening the same file using getFile() and confirm the path is OK by
what's returned and it does indeed open.
Try renaming the file to a short name and/or removing the space.
You might need to double wrap the filename in delimiters such as
["d:\docs\application form.pdf"]

"Mustansir Ghor"  wrote in message news:qhOgm3WPVHA.1876@ip-AC1E04A7...

Dear All

I am using active X object to open and read a pdf file. There is  program
pdf reader.prg that works perfectly. However I have modified little in that
as shown below. instead of getting the pdf file using getfile function, I
specify the file name. It does not work.

    function PUSHBUTTON1_onClick
//       form.filename = getfile("*.pdf")
        form.filename="d:\docs\application form.pdf"

Can anybody enlighten me on this.

Best Regards