0

I, in my application i create the invoice printing by PrintDocument, graphics etc, using only pure code(without any reporting tool or similar) Now i am able to print to any printer i wont but I would like to be able to change the parameters of a virtual printer by code(setting of save windows, autosave, path and file name set). I do not care if the printer is pdfcreator or bullzip or cutepdf or anything else, I'm interested in an extract of code to work on.

Thanks for your help

Salvo

Salvo
  • 9
  • 1

1 Answers1

1

To hide the dialog please look here

You can use properties from PrintDocument.PrinterSettings to send the output to a file:

PrintDocument.PrinterSettings.PrintFileName

PrintDocument.PrinterSettings.PrintToFile

seeseost
  • 61
  • 2
  • 7
  • I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer. – Salvo Nov 08 '18 at 21:17
  • Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName – seeseost Nov 09 '18 at 07:15
  • I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one. – Salvo Nov 09 '18 at 20:26