ネットワーク プリンターから PDF を印刷する
ネットワークプリンタから印刷するためにIronPDFをどのように使用しますか?
IronPDFはC#で利用可能なすべての印刷オプションをサポートしています。
デフォルトのプリンタに送信:
Print メソッドを使用してPDFをデフォルトのプリンタに送信します。
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指定された名前のプリンタに送信:
プリンタを名前で指定するためにオーバーロードされたPrintメソッドを使用します。
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)プリンタを発見する:
特定のプリンタにドキュメントを送信するには、プリンタが"発見"されていることを確認してください。
AirPrintの場合:
AirPrintを使用する場合は、次の提案を試してください。
次も試してみてください: PdfDocument.GetPrintDocument() または PdfDocument.Print オーバーロードは印刷プレビュウ・ウィンドウを表示し、AirPrintが使用可能であれば選択可能です。






