Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print a PDF from within FoxPro
Message
From
17/10/2003 16:33:14
 
 
To
17/10/2003 16:08:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00839903
Message ID:
00839914
Views:
27
Hi, Mark.

>I have an application that includes documentation in PDF format. I can display the PDF files from within FoxPro, but I would like to be able to print the files without having the user open them first and then print them. Is there a way to automate this so that the user can select the documents they want to print and then the program can send them to the printer?

Acrobat Reader supports the PRINT verb.

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

=Shellexecute( 0,"Print","YourDocument.PDF","","",0)
What's best with this approach is that if your user has any alternative to handle PDF files, it still works.

Hope this helps,
Previous
Reply
Map
View

Click here to load this message in the networking platform