Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Openning a .pdf
Message
From
13/01/2006 13:32:18
 
 
To
13/01/2006 13:07:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086598
Message ID:
01086643
Views:
10
It's working.
Thank you Alex, it was helpful


>>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)
>
C.Taveira
Previous
Reply
Map
View

Click here to load this message in the networking platform