使用 Active Reports 在一份报告中获取多个报告

发布于 2024-08-24 00:05:27 字数 40 浏览 2 评论 0原文

如何使用数据动态活动报告在一份报告中获取多个报告(具有不同的查询)

How can I get Multiple reports (with deferent query) in one report using data dynamic active reports

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

×眷恋的温暖 2024-08-31 00:05:27

您还可以创建多个报表,对每个报表调用 Run(),然后使用 ActiveReport.Document.Pages 将它们合并在一起。保持逻辑完全分离并将文档合并在一起的好方法。

像这样的东西:

ActiveReport report1 = new ActiveReport();
ActiveReport report2 = new ActiveReport();
report1.Run();    
report2.Run();
report.Document.Pages.AddRange(report2.Document.Pages);
//do your exporting as normal

You can also create multiple reports, call Run() on each and then merge them together using ActiveReport.Document.Pages. Nice way to keep logic completely separated and merge documents together.

something like:

ActiveReport report1 = new ActiveReport();
ActiveReport report2 = new ActiveReport();
report1.Run();    
report2.Run();
report.Document.Pages.AddRange(report2.Document.Pages);
//do your exporting as normal
攀登最高峰 2024-08-31 00:05:27

您将需要使用主报表中嵌入的一对多子报表。

You will need to use one to many SubReports embedded in the main report.

西瑶 2024-08-31 00:05:27

@Mehdi,

karnqu 提供的解决方案更好,因为合并不仅可以节省内存,而且还可以避免在主报表上使用多个子报表控件,这在设计报表时可能会更耗时。您可能需要查看这篇博客文章< /a> 它提供了有关报告合并的信息和工作示例。

谢谢,
桑卡尔普

@Mehdi,

The solution provided by karnqu is better since merging not only saves memory but also avoids making use of multiple subreport controls on the main report which might be more time consuming when it comes to designing of reports. You may want to check this blog article which provides information on report merging and a working example.

Thanks,
Sankalp

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文