Try ShellExecute PDF file name u have
Dont give the Acrobat reader directory and stuff
I think i tried with text file it opened in Notepad
so i think it will do the same for acrobat
Printable View
Try ShellExecute PDF file name u have
Dont give the Acrobat reader directory and stuff
I think i tried with text file it opened in Notepad
so i think it will do the same for acrobat
This information is obsolete.
You will only be able to open the PDF file if the Acrobat executible is in the searchable path for the computer. Notepad is generally in the C:\Windows directory (which is part of your path) so you can open the text file via the .TXT association with Notepad. Unfortunately, Acrobat is usually not installed in this manner, that is why you would need to specify the full path to the Acrobat executible to open the .PDF File.
There is another possibility and that is making the PDF.OCX control part of your app so your app contains its own PDF reader. The PDF.OCX Control is a free download from Adobe. The plus side of this is that you can still view the .PDF file even if the user doesn't have Acrobat installed. The downside of this is that each PC you want to run your app on will need the PDF.OCX file installed / registered.
You can also use an API call to find the Acrobat reader executible and then dynamically supply the path to the shell command for calling Acrobat.
If your interested in implementing the PDF.OCX option and can't find the file on Adobe's site, just e-mail me and I'll send it to you.
Edited by jcouture100 on 03-14-2000 at 05:34 PM