Solved

with acroPDF is it possible to select the printer to be used to print?

Posted on 2011-09-13
2
1,494 Views
Last Modified: 2012-06-26
I'm trying this code:
AcroPDFLib.AcroPDF PrtPDF = new AcroPDFLib.AcroPDF();
            PrtPDF.src= FileToPrint;
            PrtPDF.LoadFile(FileToPrint);
            PrtPDF.printAll();

in orderto print PDF files.
My qustion is: is it possible to select the printer before printing the document?
thanks
0
Comment
Question by:bobdylan75
2 Comments
 
LVL 21

Accepted Solution

by:
developmentguru earned 500 total points
ID: 36533816
I checked out their developer documentation.  Since acroPDF "operates as a printer" you can use Win32 API functions to set anything you could set on a normal printer such as printing to a file, or setting job properties.  Since you cannot tell a printer to print to another printer I think you will need to print to a file and then schedule that file as a print job.  I regularly program in Delphi where this would not be difficult to do.  Since you only put it in the Miscellaneous Programming zone.  I hope this helps to clarify things for you.
0
 

Author Closing Comment

by:bobdylan75
ID: 36534230
Thanks,
I will follow your tips..
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now