C# 使用printDocument1.Print打印时不显示 正在打印对话框

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

第一种,使用PrintController 

 

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

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

posted @ 2017-12-26 16:26  左正  阅读(2298)  评论(0编辑  收藏  举报