【问题标题】:How to determine the default printer using WPF?如何使用 WPF 确定默认打印机?
【发布时间】:2010-10-30 15:31:00
【问题描述】:

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

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

如何确定哪些打印机是默认打印机?

注意:使用了System.Printing.dll 程序集。

【问题讨论】:

    标签: .net wpf printing


    【解决方案1】:
    LocalPrintServer.GetDefaultPrintQueue()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多