Ağ Yazıcılarından PDF Yazdırma

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

IronPDF'yi bir ağ yazıcısından yazdırmak için nasıl kullanırım?

IronPDF, C# için mevcut olan her yazdırma seçeneğini destekler.

Varsayılan bir yazıcıya gönder:

PDF'yi 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
$vbLabelText   $csharpLabel

Adıyla belirtilmiş bir yazıcıya gönder:

Yazıcıyı adıyla 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)
$vbLabelText   $csharpLabel

Yazıcıları keşfedin:

Belgeyi belirli bir yazıcıya göndermek için yazıcının 'keşfedilmiş' olduğundan emin olun.

AirPrint için:

AirPrint kullanıyorsanız aşağıdaki önerileri deneyin:

Şunları da deneyebilirsiniz: PdfDocument.GetPrintDocument() veya PdfDocument.Print aşırı yüklemeleri, yazdırma önizleme penceresini gösterir ve varsa AirPrint'in seçilmesine izin verir.

Curtis Chau
Teknik Yazar

Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapı...

Daha Fazla Oku
Başlamaya Hazır mısınız?
Nuget İndirmeler 19,014,616 | Sürüm: 2026.5 just released
Still Scrolling Icon

Hâlâ Kaydırıyor Musunuz?

Hızlıca kanıt ister misiniz? PM > Install-Package IronPdf
bir örnek çalıştır HTML'nizi bir PDF'ye dönüştüğünü izleyin.