我们在VS.net 2008中开发了3个Crystal报表 . 所有3个报表的输入参数都是相同的 .
无论如何我们可以在ASP.net页面点击按钮时一次打印所有3个报告 .
请帮忙
您可以生成三个报告,并按顺序打印 .
ReportDocument rptDocument = new ReportDocument(); // Load report. rptDocument.Load(Server.MapPath("reportNameOrPath")); // Set report parameters is exist. ParameterFields parameterFields = new ParameterFields(); ParameterField parameterField = null; ParameterDiscreteValue parameterValue = null; ... // 0, 0: to print all the pages. this.RptDocument.PrintToPrinter(1, false, 0, 0);
您可以将此代码包装在接受reportNameOrPath作为参数的方法中,并为每个报告调用它 .
1 回答
您可以生成三个报告,并按顺序打印 .
您可以将此代码包装在接受reportNameOrPath作为参数的方法中,并为每个报告调用它 .