标签:for .com www als ted string htm server static
第一步:添加引用
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;
}
转载自:https://www.cnblogs.com/edielei/p/4966366.html
标签:for .com www als ted string htm server static
原文地址:https://www.cnblogs.com/ITzhangyunpeng/p/9342948.html