回复 3楼iamzhaiwei的帖子
初步判断,new出实例后,报表没有run,故Document.Pages里面无内容,也就是前台页面仍然只是report1的。
调试下面代码试试看:
- SectionReport report1 = new Report7_1();
- SectionReport report2 = new Report7_2();
- report2.Run(); //每个报表预先运行一下,生成报表后,添加到report1里面才有真实的报表数据。
- SectionReport report3 = new Report7_3();
- SectionReport report4 = new Report7_4();
- SectionReport report5 = new Report7_5();
- SectionReport report6 = new Report7_6();
- report1.Document.Pages.AddRange(report2.Document.Pages);
- report1.Document.Pages.AddRange(report3.Document.Pages);
- report1.Document.Pages.AddRange(report4.Document.Pages);
- report1.Document.Pages.AddRange(report5.Document.Pages);
- report1.Document.Pages.AddRange(report6.Document.Pages);
- return PartialView("WebViewer", report1);
复制代码 |