using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Drawing.Printing; namespace ICSSoft.Base.Lable.PrintTool { public class GetPrinterInfo { public static List GetPrinters() { List lsit = new List(); PrintDocument print = new PrintDocument(); foreach (string sPrint in PrinterSettings.InstalledPrinters)//获取所有打印机名称 { lsit.Add(sPrint); } return lsit; } } }