Reputation: 1391
In my application, I am taking selected user data and creating a PDF file. The PDF file is saved on their local machine. I have a table in my Dialog displaying the PDF filename and location.
I am wanting to add a button to the bottom of the table. The button will print the selected PDF file name to a local printer. I really don't need to view the PDF File. I just want to be able to select a local printer and print the PDF File.
With the button click,
I do not know where to go from here.
Do I need a special open source like PdfRenderer? Do I have to get the file back in to my Application or is it possible to print from its location?
Upvotes: 1
Views: 1078
Reputation: 9535
If you don't need a PDF you should consider printing directly. Paperclipse from Nebula can help you. Additionally if you assume that Adobe Acrobat is used, you can start Acrobat Reader with a special flag from command-line that opens directly the print-dialog, see Adobe Reader Command Line Reference
Upvotes: 1