Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print a PDF file directly to printer
Message
De
22/03/2017 01:06:10
 
 
À
21/03/2017 19:19:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01649235
Message ID:
01649240
Vues:
56
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform