如何在报告底部汇总所有项目详细信息总计?
我目前有一份运行良好的标准报告,如下所示:
-----------------------------
Product: Foo
-----------------------------
Date Itmes Sold Total
Feb 01 5 14.95
Feb 03 2 5.98
Feb 04 10 29.90
-----------------------------
Total 17 50.83 [1]
-----------------------------
-----------------------------
Product: Bar
-----------------------------
Date Itmes Sold Total
Feb 01 7 34.94
Feb 03 1 4.99
-----------------------------
Total 8 39.92 [1]
-----------------------------
//...
more products
//....
-----------------------------
Report
Totals 26 90.75
-----------------------------
我被要求在报告底部添加摘要。摘要将列出每个产品的总计([1] 中的信息),类似于以下内容:
-----------------------------
Summary
-----------------------------
Foos 17 50.83
Bars 8 39.92
-----------------------------
Total 26 90.75
-----------------------------
由于每个报告只有一项详细信息,可以这样做吗?我将如何创建摘要?我需要创建子报告吗?
任何建议将不胜感激。
I currently have a standard report that is working well and looks something like the following:
-----------------------------
Product: Foo
-----------------------------
Date Itmes Sold Total
Feb 01 5 14.95
Feb 03 2 5.98
Feb 04 10 29.90
-----------------------------
Total 17 50.83 [1]
-----------------------------
-----------------------------
Product: Bar
-----------------------------
Date Itmes Sold Total
Feb 01 7 34.94
Feb 03 1 4.99
-----------------------------
Total 8 39.92 [1]
-----------------------------
//...
more products
//....
-----------------------------
Report
Totals 26 90.75
-----------------------------
I've been asked to include a summary to the bottom of the report. The summary will list the totals for each product (the information in [1]) similar to the following:
-----------------------------
Summary
-----------------------------
Foos 17 50.83
Bars 8 39.92
-----------------------------
Total 26 90.75
-----------------------------
As there is only one item detail per report, can this be done? How would I create the summary? Do I need to create a sub report?
Any advice would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无需创建子报告,只需在产品总计后添加一个表,并使用类似 对象数据源。
少量使用子报告,因为它们会快速增加生成 Telerik 报告所需的处理时间。
Instead of creating a sub report just add a table after the product totals and bind a Summary object to the table using something like the Object Data Source.
Use sub-reports lightly as they can quickly increase the processing time required to generate a Telerik report.