1金币
代码执行打印时,如何设置只打印第一页
GrapeCity.ActiveReports.PrinterSettings printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
printerSettings.ShowPrintDialog = ishowDiag;//是否显示打印属性对话框 false 不显示
printerSettings.ShowPrintProgressDialog = true;
//pageReport.Report.PageWidth = "7.4";
GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
//printerSettings.prst
pageDocument.Print(printerSettings);
|
|