Crystal Reports:将子报表包含到分组部分中?
我有一份报告,其中列出了公司详细信息。公司详细信息有两个部分。第一部分列出了环境数据,第二部分实际上是一个子报告,列出了公司每年的现金流量详细信息。
我需要为多家公司执行此操作,因此我按公司对报告进行了分组。除了子报表之外,这就像做梦一样。我在尝试让每个公司都有不同的现金流量子报告时遇到了真正的问题。有人知道如何将子报表纳入一个组中,以便我拥有的每家公司都有自己的现金流数据数据吗?
I have a report which lists out a company detail. There are two sections to the company detail. The first portion lists out environmental data and the second is actually a subreport which lists out Cash flow details for every single year of the company.
I have multiple companies i need to do this for--so i grouped the report by Company. This works like a dream except for when it comes to the subreport. I'm having real issues trying to get it so that every single company has a different subreport of cash flow. Anybody know how to include a subreport into a group so that every company i have has its own data for the cash flow data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须将子报表链接到主报表:右键单击子报表并选择“编辑子报表链接”。您可以在此处选择用于链接主报告和子报告的字段。
You have to link the subreport to the main report: right-click on the subreport and choose "Edit subreport links". Here you can select the fields to use to link the main report and the subreport.
您必须将子报表链接到主报表:右键单击子报表并选择“编辑子报表链接”。您可以在此处选择用于链接主报表和子报表的字段。
编辑子报告并在菜单中单击报告 ->选择专家并单击显示公式按钮。默认情况下,它显示“记录选择”单选按钮。
您复制该公式并选择“组选择”并粘贴并给出“确定”。
它会起作用:-)
You have to link the subreport to the main report: right-click on the subreport and choose "Edit subreport links". Here you can select the fields to use to link the main report and the subreport.
Edit Subreport and in Menu, Click Report -> Select Expert and click show formula button. By default it shows Record Selection radio button.
You copy that formula and choose Group Selection and paste and give ok.
It will work :-)
子报告必须采用主报告将提供的标识公司的参数。然后,您可以通过主报告页面上可用的子报告属性将该值链接到参数。
The subreport has to take a parameter that identifies a company, which the main report will provide. Then you link the value to the parameter via the subreport properties available on the main report page.