IronPDF 故障排除 从网络打印机打印 Printing PDFs from Network Printers Curtis Chau 更新日期:8月 20, 2025 Download IronPDF NuGet 下載 DLL 下載 Windows 安裝程式 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English role="alert">IronPrint 是Iron Software全新的.NET打印庫,提供跨多平臺的兼容性,包括Windows、macOS、Android和iOS。立即開始使用IronPrint! 如何使用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 $vbLabelText $csharpLabel 發送到指定名稱的打印機: 使用重載的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) $vbLabelText $csharpLabel 發現打印機: 為了將文件發送到特定的打印機,確保該打印機已被"發現"。 獲取已安裝打印機列表 如何獲取電腦中所有打印機的列表 對於AirPrint: 如果使用AirPrint,請嘗試以下建議: AirPrint: 直接將PDF文件打印到打印機 如何偽造AirPrint打印機 您也可以嘗試: PdfDocument.GetPrintDocument()或PdfDocument.Print重載,它們顯示打印預覽窗口,如果可用,將允許選擇AirPrint。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? Nuget 下載 16,154,058 | 版本: 2025.11 剛剛發布 免費 NuGet 下載 總下載量:16,154,058 查看許可證