第一步:添加引用
using System.Printing;

第二步:代码
public static List<string> GetPrintList()
{
    List<string> lt = new List<string>();
    LocalPrintServer printServer = new LocalPrintServer();
    PrintQueueCollection printQueuesOnLocalServer = printServer.GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local });
    foreach (PrintQueue printer in printQueuesOnLocalServer)
        lt.Add(printer.Name);
    return lt;
}

相关文章:

  • 2022-02-07
  • 2022-01-02
  • 2021-07-04
  • 2022-02-14
  • 2022-12-23
  • 2021-10-14
猜你喜欢
  • 2022-03-01
  • 2021-12-13
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案