PrintDocument pd = new PrintDocument();
//隐藏 对话框
PrintController printController = new StandardPrintController();
pd.PrintController = printController;
//创建打印画布
Graphics g = pd.PrinterSettings.CreateMeasurementGraphics();
g.DrawImage(image,0,0);
pd.Print();
|