https://blog.csdn.net/weixin_38211198/article/details/89740286
不过这个分享不能赋值,正的麻烦,所以我拷贝过来了
using System.Drawing.Printing;//这句是需要引用
foreach (var item in PrinterSettings.InstalledPrinters)
{
Console.WriteLine(item);
}
Console.ReadKey();
2022-11-01 11:26:26
https://blog.csdn.net/weixin_38211198/article/details/89740286
不过这个分享不能赋值,正的麻烦,所以我拷贝过来了
using System.Drawing.Printing;//这句是需要引用
foreach (var item in PrinterSettings.InstalledPrinters)
{
Console.WriteLine(item);
}
Console.ReadKey();