Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open and Print a PDF file
Message
 
 
À
04/04/2003 08:53:27
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00773960
Message ID:
00773964
Vues:
54
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform