0

NOTE: The other questions have not solved my problem.

I’ve got an PrintDocument object type and I would like to save its content in PDF format. Within the object already exists the .print () method, however when running this method shows up a box asking where to save the file. Instead, I need to save the generate file in a specific directory, without the need for the user to choose the name and location for the file.

PS. I tried to perform the procedure:How to skip the dialog of printing in printDocument.print() and print page directly? But can not. We came to create a file in the folder set with that name set, however the file creates empty and still appears the dialog box.

Community
  • 1
  • 1
  • I tried to perform the procedure:How to skip the dialog of printing in printDocument.print() and print page directly? But can not. We came to create a file in the folder set with that name set, however the file creates empty and still appears the dialog box. – Matheus Freitas May 23 '16 at 14:48
  • Why can you not perform the proposed solution? Is your printer unplugged? Show us what you tried. Are you getting an error? Show it to us. We can't help you until you post code that displays the problem. – Dour High Arch May 23 '16 at 15:28

0 Answers0