C# 使用printDocument1.Print打印时不显示 正在打印对话框(里面还有一个讨厌的取消按钮)

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

第一种,使用PrintController

      PrintController printController = new StandardPrintController();      

printDocument1.PrintController = printController;   

    printDocument1.Print();

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

原文地址:https://www.cnblogs.com/qqhfeng/p/3455657.html