using System.Drawing.Printing;        //这是必备

 

 

for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++)       //获取当前打印机
{
                comboBox1.Items.Add(PrinterSettings.InstalledPrinters[i])
} comboBox1.SelectedIndex
= 0;

 

PrintDocument fPrintDocument = new PrintDocument();    //获取默认打印机的方法
comboBox1.Text
= fPrintDocument.PrinterSettings.PrinterName;

 

相关文章:

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