1

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,

  1. I can get the file name and location from the selected table cell.
  2. I can get local printers using PrintDialog

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?

Baz
  • 36,440
  • 11
  • 68
  • 94
jkteater
  • 1,381
  • 3
  • 36
  • 69

1 Answers1

1

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

Community
  • 1
  • 1
Tom Seidel
  • 9,525
  • 1
  • 26
  • 38