private void GetPrinte() { System.Drawing.Printing.PrintDocument print = new System.Drawing.Printing.PrintDocument(); string sDefault = print.PrinterSettings.PrinterName;//默认打印机名 foreach (string sPrint in System.Drawing.Printing.PrinterSettings.InstalledPrinters)//获取所有打印机名称 { comPrint.Items.Add(sPrint); } }