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 printingEnviar 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);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: PdfDocument.GetPrintDocument() o sobrecargas de PdfDocument.Print, que muestran la ventana de vista previa de impresión y, si está disponible, permitirán seleccionar AirPrint.






