Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Openning a .pdf
Message
De
13/01/2006 13:07:59
 
 
À
13/01/2006 12:10:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
Database:
Visual FoxPro
Divers
Thread ID:
01086598
Message ID:
01086631
Vues:
11
>I would like to open a .pdf file from a VFP desktop application. I'm puzzled because the acrobat is randomly placed in the clients workstations.

As long as Acrobat or a PDF reader is installed, use Windows to open a file using the extension association.
DECLARE INTEGER ShellExecute ;
	    IN SHELL32.DLL ;
	    INTEGER nWinHandle,;
	    STRING cOperation,;
	    STRING cFileName,;
	    STRING cParameters,;
	    STRING cDirectory,;
	    INTEGER nShowWindow

lcFilename = "sample.pdf"
lcFolder = "c:\temp"
RETURN ShellExecute( 0, "Open", lcFilename, "", lcFolder, 1)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform