Print with Dialog
using IronPrint;

// Show print dialog
Printer.ShowPrintDialog("newDoc.pdf");
NuGet Download
PM > Install-Package IronPrint
Print with Dialog

Print with Dialog

Use the ShowPrintDialog method to display the settings dialog before printing the document. This can be handy for presenting GUI print settings.

Here's an example in C#:

Explanation

  • File Reference: The path to the PDF file to be printed (newDoc.pdf) is passed directly to Printer.ShowPrintDialog.
  • ShowPrintDialog Call: Printer.ShowPrintDialog("newDoc.pdf") opens the native operating system print dialog synchronously, letting the user choose a printer and adjust settings such as paper size or number of copies.
  • Dispatching the Job: Once the user confirms the dialog, IronPrint sends the document to the selected printer automatically - no further code is required.
Explore more on customizing print settings with IronPrint.
View on GitHub

Ready to Get Started?

Nuget Downloads 49,171Version:2026.11just released