Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print a PDF file directly to printer
Message
From
22/03/2017 01:06:10
 
 
To
21/03/2017 19:19:23
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01649235
Message ID:
01649240
Views:
55
>I am finishing developing and interface between an application a developed more than 10 years ago and a Web Service which allows for it to issue Electronic Invoices. This WS gives me a PDF as one of the tasks it does. So, besides being e-mailed, the PDFs sometimes will need to be printed. Is there a way to print PDF's (from my VFP app) with no additional software or just with a .DLL? Just directly to the printer?

There was a discussion at http://stackoverflow.com/questions/5566186/print-pdf-in-c-sharp . One of the ideas there is GhostScript, which IIRC can be just a DLL but I haven't used it and have no idea how reliable it is.

If it were me I'd install Adobe Acrobat Reader DC and use ShellExecute() with a "Print" action.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform