How can I open a PDF file for viewing? My db has a list of PDF files that are stored on the file system. I'd like to provide the option for my users to open/view the file from my application instead of through the file system.
In addition to Andreas excellent answer .. another alternative is to host your PDF file(s) on a web server and then use PB's iNET object's HyperlinkToURL ( ) method to deliver the PDF to the user machine's web browser where your PB App is executing.
Regards ... Chris
Thank you... I chose this way as it seems to be the easiest and most "fool proof". Here's what I did (straight from the manual):
It doesn't open the PDF in Adobe Acrobat Reader, but I think this solution will be fine. Thanks again.
Thank you for answering! I tried the shellexecute(…) and it works great! My only issue is that I don't know how to disable editing of any kind. The documents my users will be viewing will all be "read only". I'm guessing that if you have a version of Adobe Acrobat that allows editing, then the user would be able to make changes and save the document back to the same location. That doesn't seem possible with the HyperlinkToURL() solution.
Again, thank you most kindly for taking the time to respond! Much appreciated.