PrintDocument pd = new PrintDocument();
//隐藏 取消对话框 PrintController printController = new StandardPrintController(); pd.PrintController = printController;
//创建打印画布 Graphics g = pd.PrinterSettings.CreateMeasurementGraphics(); g.DrawImage(pictureBox1.Image,0,0);
pd.Print();
|
请发表评论