Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open an Adobe Acrobat PDF file
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00557038
Message ID:
00557964
Views:
20
First, you need to install the Adobe Reader, (free viewer) www.adobe.com
then, you have two options that I know of..
using the schellexecute() function, you can just open that pdf file, and the adobe reader will start automatically. however, this will not open inside your app... it will open a seperate window... If you want the pdf to open say inside a vfp form. then you have to use the active x control Acrobat control for Activex. Drop that active x control on a form. and set the property for the loadfile() to be your pdf file.
like thisform.olecontrol1.loadfile("mypdf.pdf")
then the pdf would be shown inside your form.

Hope this helps.

Bob Lee


>>Do you want to display PDF file, edit, print?
>>
>>>Hi, do anybody knows hou to open an Adobe Acrobat PDF file from within VFP?
>>>
>>>Regards,
>
>I´m not allowed to print, edit or extract any information from this file. I just want to open it and search.
In the beginning, there was a command prompt, and all was well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform