Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open and Print a PDF file
Message
 
 
À
20/01/2006 09:39:11
Jack Whitehead
Systech Environmental
Dayton, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00773960
Message ID:
01088892
Vues:
21
Hi Jack,

>I'm relatively new to FoxPro and am using version 8.0. I tried your example but received an error saying that I needed additional parameters: "lpFileName, WorkDirectory, lcOperation"
>
>The line I was using is:
> nRetu = ThisForm._SHELLEXECUTE1.shellexecute(lcFile, "", "Print")


My example uses SHELLEXECUTE() WIN API directly. You're using something else.


>The problem here is that while it sends the document directly to the printer it also starts up the Adobe framework.
>
>Do you have any suggestions on how I can prevent Adobe from starting up or how to programatically close it?


When you specify a file name and a verb in the SHELLEXECUTE(), Windows uses an application associated with the particular file type (extension) to perform that action. In case of PDF it uses Adobe Acrobat or Adobe Acrobat Reader to print the file.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform