在 C# 中,如何区分物理打印机和虚拟打印机(如 PDF 编写器)。
最好的情况我想这样做:
bool physical = PrinterSettings.InstalledPrinters[0].IsPhysicalPrinter();
public static bool IsPhysicalPrinter(this PrinterSettings printer)
{
//Do Some Magics
}
在 C# 中,如何区分物理打印机和虚拟打印机(如 PDF 编写器)。
最好的情况我想这样做:
bool physical = PrinterSettings.InstalledPrinters[0].IsPhysicalPrinter();
public static bool IsPhysicalPrinter(this PrinterSettings printer)
{
//Do Some Magics
}