代码之家  ›  专栏  ›  技术社区  ›  Michael Damatov

如何使用WPF确定默认打印机?

  •  8
  • Michael Damatov  · 技术社区  · 16 年前

    要检索我使用的打印机列表:

    new LocalPrintServer().GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections })
    

    注: System.Printing.dll

    1 回复  |  直到 16 年前
        1
  •  14
  •   Michael Damatov    16 年前
    LocalPrintServer.GetDefaultPrintQueue()