Impresión de archivos PDF desde impresoras de red
¿Cómo puedo utilizar IronPDF para imprimir desde una impresora de red?
IronPDF admite todas las opciones de impresión disponibles para C#.
Enviar a una impresora predeterminada:
Utilice el método Print para enviar el PDF a la impresora predeterminada.
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(showPreview: false); // set `showPreview` to true to see a preview before printing
// 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(showPreview: false); // set `showPreview` to true to see a preview before printing
' C# example of sending a PDF document to the default printer
Imports IronPdf
Private pdf = PdfDocument.FromFile("example.pdf")
' Sends the document to the default printer
pdf.Print(showPreview:= False) ' set `showPreview` to true to see a preview before printing
Enviar a una impresora con nombre:
Utilice el método sobrecargado Print para especificar la impresora por nombre.
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, showPreview: false);
// 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, showPreview: false);
' C# example of sending a PDF document to a specific printer by name
Imports IronPdf
Private pdf = PdfDocument.FromFile("example.pdf")
Private printerName As String = "MyNetworkPrinter"
' Sends the document to the specified printer
pdf.Print(printerName, showPreview:= False)
Descubra las impresoras:
Para enviar el documento a una impresora específica, asegúrese de que la impresora esté 'descubierta'.
Para AirPrint:
Pruebe las siguientes sugerencias si utiliza AirPrint:
También puede intentar:
Sobrecargas PdfDocument.GetPrintDocument() o PdfDocument.Print, que muestran la ventana de vista previa de impresión y, si está disponible, permitirán seleccionar AirPrint.

