C# 打印,不显示打印进度对话框

C#打印,不显示打印进度的对话框

  PrintDocument pd = new PrintDocument();

    //隐藏 对话框
   PrintController printController = new StandardPrintController();
   pd.PrintController = printController;

    //创建打印画布
   Graphics g = pd.PrinterSettings.CreateMeasurementGraphics();
   g.DrawImage(image,0,0);

   pd.Print();

 

posted @ 2013-03-11 17:09  IT爱好者  阅读(2528)  评论(0编辑  收藏  举报