Impresión de archivos PDF desde impresoras de red

This article was translated from English: Does it need improvement?
Translated
View the article in English

¿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
$vbLabelText   $csharpLabel

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);
$vbLabelText   $csharpLabel

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.

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 17,012,929 | Versión: 2025.12 recién lanzado