C#使用printDocument1.Print打印时不显示正在打印对话框有两种方法

第一种,使用PrintController 

 

      PrintController printController = new StandardPrintController();
      printDocument1.PrintController = printController;
      printDocument1.Print();

第二种,把窗体的TopMost设为True 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-12-21
  • 2021-06-24
  • 2021-12-09
  • 2022-12-23
  • 2021-08-04
  • 2022-01-13
猜你喜欢
  • 2021-08-03
  • 2021-10-01
  • 2021-12-20
  • 2022-03-09
相关资源
相似解决方案