![]() The only thing the user has to set, is the name for the pdf-file. In the end, the dialog itself doesn't matter, but the 'Print Picture'-Dialog got all settings I need. To switch printers on Windows, see Change the default printer (Windows 10 and 8) or search Windows help for instructions. Sometimes a different printer can successfully print a PDF that doesn't print on another printer. Which I changed for the 'Print Picture'-Dialog. If you have a different printer connected to your computer, try printing the file to the other printer. Private void pd_PrintPage(object sender, PrintPageEventArgs e) Pd.PrinterSettings.PrinterName = STR_PRINTER_NAME Provide a name and location for the PDF file you are saving to (may default to the current name and location of the native document). Pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage) I can now print one image to a pdf page, but how do I add other images? Additionally, in this solution, I can't see how to set the printing-settings, like size of the image, which should be as large as possible without cutting the image and changing to horizontal format. I tried it first with other methods, which didn't give me this one. So far so good, the right dialogue is showing. My current code looks like this: string fileName = p = new Process() As a printer, I want to use the 'Microsoft print to PDF'-Printer, which comes with windows 10. I want to print multiple images to a pdf file, but not using the regular print-dialogue, but the 'print pictures' dialogue (see image below).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |