Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open and Print a PDF file
Message
 
 
To
04/04/2003 08:53:27
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00773960
Message ID:
00773964
Views:
52
This message has been marked as the solution to the initial question of the thread.
>I need to Open and Print a PDF file from VFP. Someone can help me?

You can use ShellExecute API #12636.
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd

lcPDFfile = "c:\mydir\myfile.pdf"
* Open PDF file
=Shellexecute(0,"Open", lcPDFfile, "","",7)
* Print PDF file
=Shellexecute(0,"Print", lcPDFfile, "","",0)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform