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 PrintDocument Creation: We create an instance of PrintDocument, which is used to handle the document to be printed. Event Handler: We attach an event handler (PrintDocument_PrintPage) to manage the actions to be taken when a page is printed. PrintDialog Setup: A PrintDialog is initialized and assigned to the PrintDocument. This dialog allows users to configure their printing preferences. Executing Print: We show the print dialog using ShowDialog(). If the user confirms the settings by clicking OK, the document is sent to the printer using printDocument.Print(). PrintPage Event: Within the event handler (PrintDocument_PrintPage), we define what content appears on the printed page using graphics methods, such as DrawString, to render text onto the page. Explore more on customizing print settings with IronPrint. Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation Download IronPrint DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 34,156 | Version: 2025.11 just released Free NuGet Download Total downloads: 34,156 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)