Printing PDFs from Network Printers
IronPrint is Iron Software's brand new .NET printing library, offering compatibility across a wide range of platforms, including Windows, macOS, Android, and iOS. Get started with IronPrint now!
How do I use IronPDF to print from a network printer?
IronPDF supports every printing option available to C#.
Send to a default printer:
Use the Print method to send the PDF to the default printer.
IronPdf.PdfDocument.Print(System.Boolean)
// C# example of sending a PDF document to the default printer
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
// Sends the document to the default printer
pdf.Print();Imports IronPdf
Dim pdf = PdfDocument.FromFile("example.pdf")
' Sends the document to the default printer
pdf.Print()Imports IronPdf
Dim pdf = PdfDocument.FromFile("example.pdf")
' Sends the document to the default printer
pdf.Print()Send to a named printer:
Use the overloaded Print method to specify the printer by name.
IronPdf.PdfDocument.Print(System.String, System.Boolean)
// C# example of sending a PDF document to a specific printer by name
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
string printerName = "MyNetworkPrinter";
// Sends the document to the specified printer
pdf.Print(printerName);// C# example of sending a PDF document to a specific printer by name
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
string printerName = "MyNetworkPrinter";
// Sends the document to the specified printer
pdf.Print(printerName);Imports IronPdf
Dim pdf = PdfDocument.FromFile("example.pdf")
Dim printerName As String = "MyNetworkPrinter"
' Sends the document to the specified printer
pdf.Print(printerName)Imports IronPdf
Dim pdf = PdfDocument.FromFile("example.pdf")
Dim printerName As String = "MyNetworkPrinter"
' Sends the document to the specified printer
pdf.Print(printerName)Discover printers:
To send the document to a specific printer, ensure the printer is 'discovered'.
For AirPrint:
Try the following suggestions if using AirPrint:
You can also try:
PdfDocument.GetPrintDocument() or PdfDocument.Print overloads, which show the print preview window and, if available, will allow AirPrint to be selected.
Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.