Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open and Print a PDF file
Message
 
 
To
20/01/2006 09:39:11
Jack Whitehead
Systech Environmental
Dayton, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00773960
Message ID:
01088892
Views:
22
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform