獲取打印機名稱

Use the GetPrinterNames method to retrieve all available printers connected to the machine. The method will return a list of printer names in string data type.

這段程式碼片段提供了一種簡單有效的方法來列出連接到您電腦的所有印表機,這對於在大型應用程式中偵錯或管理印表機設定非常有用。

探索進階印表機設定指南

準備好開始了嗎?
Nuget 下載 38,422 | 版本: 2026.3 剛剛發布
Still Scrolling Icon

還在捲動嗎?

想要快速證明? PM > Install-Package IronPrint
執行範例 觀看您的文件打到印表機上。