Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Contolling Adobe Acrobat reader from VFP
Message
From
17/08/2000 11:12:19
 
 
To
10/08/2000 15:04:28
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00403587
Message ID:
00406124
Views:
43
>Anyone know of a control to allow a VFP app to control Acrobat reader? Here's the deal, we want to have our app open call a pdf file and open an Acrobat session where the user can view/print the file. Any suggestions would be appreciated.
>

There's no need for a control. If Acrobat is installed, you can view or print a .PDF document using ShellExecute(); it supports the Open verb to view, and both Print and PrintTo verbs to print. ShellExecute() can be used in VFP through the Win32 API; the FFC contains a wrapper class _shellexecute() in _ENVIRON.VCX:

oShell = NEWOBJECT('_shellexecute','environ.vcx')
oShell.ShellExecute('C:\MyDir\MyPDFFile.PDF',,'OPEN') && view
oShell.ShellExecute('C:\SomeOtherDir\SomeOtherDoc.PDF',,'PRINT') && print on default printer
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform