ネットワーク プリンターから PDF を印刷する
IronPrintは、Iron Softwareの新しい.NET印刷ライブラリで、Windows、macOS、Android、iOSを含む幅広いプラットフォームで互換性を提供します。今すぐIronPrintを使い始めましょう!
ネットワークプリンタから印刷するためにIronPDFをどのように使用しますか?
IronPDFはC#で利用可能なすべての印刷オプションをサポートしています。
デフォルトのプリンタに送信:
PDFをデフォルトプリンターに送信するにはPrintメソッドを使用します。
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
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
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を使用する場合は、次の提案を試してください。
次も試してみてください:
印刷プレビューウィンドウを表示し、利用可能な場合はAirPrintが選択可能なPdfDocument.Printオーバーロードを使用します。

Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。