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:
00560832
Views:
23
Jose

Another kind of round about (but easy to code and control method) is to put the MS Internet Explorer ActiveX on a form, and set it's INIT code to something like
this (the oleWB is the name I gave to the OLE Control)

THISFORM.oleWB.Navigate('file://C:/SOURCE/VFP6/POSTMGR/VER32062/i-9.pdf')
ThisForm.oleWB.setfocus() && Hides unwanted scrollbar
Thisform.oleWB.Setfocus() && Some object to get focus from browser

Of course, you can substitute the path/file of the first line of code with anything you want to view/print.

Also, you do need Adobe Acrobat Reader installed, but not the full Adobe Acrobat.

By the way, this works for almost any file types - animated GIFs, etc.

Hope this helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform