Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Acrobat File
Message
De
28/12/1999 12:48:00
 
 
À
28/12/1999 12:39:11
Yongyao Lou
Florida Department of Transportation
Tallahassee, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00309269
Message ID:
00309283
Vues:
19
>I have an Acrobat file with .pdf extension. I can run it in the wiondow98 by just clicking it. I would like have a command button in my form by clicking it to run the acrobat file. Is there a way to do it? Please help, thanks!

Assuming that Acrobat has been installed previously, you can launch an Acrobat document using the ShellExecute() API call. There are examples in the FAQ showing how this is implemented. If you have VFP6, there is a ShellExecute() implementation in the FFC.

You could also use the RUN command to invoke the Acrobat reader against the .PDF directly; you need to know where it's installed to do this if it is not on the Windows search path.

Warning - this depends on Acrobat having been installed previously on the system. This is not an MS component, and requires installation on each target machine.
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