Ağ Yazıcılarından PDF Yazdırma
IronPDF kullanarak bir ağ yazıcısından nasıl yazdırırım?
IronPDF, C# için mevcut tüm yazdırma seçeneklerini destekler.
Varsayılan yazıcıya gönder:
PDF'i varsayılan yazıcıya göndermek için Print yöntemini kullanın.
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
Adlandırılmış bir yazıcıya gönder:
Yazıcıyı isimle belirtmek için aşırı yüklenmiş Print yöntemini kullanın.
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)
Yazıcıları keşfet:
Belgeyi belirli bir yazıcıya göndermek için yazıcının 'keşfedildiğinden' emin olun.
AirPrint için:
AirPrint kullanıyorsanız, aşağıdaki önerileri deneyin:
Ayrıca şunları da deneyebilirsiniz:
Baskı önizleme penceresini gösteren ve varsa AirPrint'in seçilmesine izin veren PdfDocument.GetPrintDocument() veya PdfDocument.Print aşırı yüklemelerini.

