Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print PDF file from VFP directly?
Message
From
18/05/2004 06:50:38
 
 
To
18/05/2004 06:06:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00904836
Message ID:
00904846
Views:
45
You could use the Windows API ShellExecute function with the print verb to print the file using the PDF application (ie Acrobat) registered on the users machine.
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd

= ShellExecute(0, "Print", "c:\test.pdf", "", "", 0)
HTH
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform