IRONSOFTWAREHOME
Print with Dialog
using IronPrint;

// Show print dialog
Printer.ShowPrintDialog("newDoc.pdf");
Imports 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 46,090Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required