Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Contolling Adobe Acrobat reader from VFP
Message
De
17/08/2000 11:12:19
 
 
À
10/08/2000 15:04:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00403587
Message ID:
00406124
Vues:
44
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform