Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PDF to Printer
Message
De
17/07/2001 12:23:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00531130
Message ID:
00531586
Vues:
12
>>>How can I print a PDF file to a specific printer? Idealy, it should be transparant since this is going to be run on a job server.
>>>
>>>I have tried the ShellExecute API with the 'Print' verb to the Default Printer (which I change) which causes in GPF on the two systems I have tried it on. Interestingly, doing a Right Click on the PDF file in Windows Explorer and choosing the Print option also caused the GPF. I am using Adobe Acrobat 5.0 on both Windows ME and Windows 2000.
>>>
>>>Thanks,
>>>Troy
>>
>>You might find the following white paper helpful:
>>
>>http://www.west-wind.com/presentations/pdfwriter/pdfwriter.htm
>
>
>Thanks for the paper, but it is the other direction I am attempting. I already have the PDF files and need to print them to a specific printer.

First you need to change default printer to the one you want. Dont have an API for you but I beleive they are out there. Also you can use MS Word if it's installed. Use ActivePrinter property to change default printer. Then print PDF either via ShellExecute of Automation. Should work.
Mark
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform