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

3490阅读 0评论2016-05-25 dyli2000
分类:C#/.net

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

第一种,使用PrintController 


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

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

转自网址:
http://www.cnblogs.com/chendaoyin/p/3194011.html

上一篇:自定义panel的双击事件
下一篇:windows下编译及使用libevent