C# 获取所有可用的打印机
C# 获取所有安装了的打印机代码如下:
using System.Drawing.Printing; var printers = PrinterSettings.InstalledPrinters; foreach (var item in printers) { Console.WriteLine(item.ToString()); }
C# 获取所有安装了的打印机代码如下:
using System.Drawing.Printing; var printers = PrinterSettings.InstalledPrinters; foreach (var item in printers) { Console.WriteLine(item.ToString()); }