如何添加打印完毕的事件
本帖最后由 Crystal.Li 于 2021-10-14 11:15 编辑string file_name = Application.StartupPath + "\\Reports\\xp.rdlx";
GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(file_name));
GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
//传入参数
pageReport.Report.ReportParameters.DefaultValue.Values.Add("123456");
pageDocument.Print(false, true, false);
需要判断操作完打印完成后,更新打印次数等
这个打印方法是同步执行的,在print方法后面执行更新打印次数的逻辑即可,这些都可以在代码里面直接控制。
页:
[1]