[英]Showing two Reports data in single crystal Report
I am trying to show tables in one crystal report just like: 我试图在一个水晶报表中显示表格,如下所示:
Table A========================================================================
ColA ColB Colc ColD
Table B========================================================================
ColA ColB Colc ColD
and both are independent of each other, how to achieve the same display and result? 两者彼此独立,如何实现相同的显示和结果? I have created Table A and is displayed, but do I inserted a sub-report, but by inserting the same I am not getting the desired result.
我已经创建了表A并显示了表A,但是我是否插入了子报表,但是通过插入相同的子报表却无法获得理想的结果。
The way to accomplish what you're trying to do is with subreports (also suggested by Hiten004 in the comments). 完成您要尝试执行的操作的方法是使用子报表(Hiten004在注释中也建议)。 Simply insert two subreports into the main report - the first one will connect to table A and the second will connect to table B.
只需在主报表中插入两个子报表-第一个将连接到表A,第二个将连接到表B。
In order to get them to display from your main report, make sure they are not configured as "on demand" subreports. 为了使它们从您的主报告中显示,请确保未将它们配置为“按需”子报告。
To save time if the formatting needs to look the same for the two reports, consider designing the subreport as its own report first (with datasource A), saving it, then importing it twice. 如果两个报表的格式需要看起来相同,则可以节省时间,请考虑先将子报表设计为自己的报表(使用数据源A),将其保存,然后将其导入两次。 Once imported, just change the datasource of the second subreport to datasource B using the "Set Table Location" feature.
导入后,只需使用“设置表位置”功能将第二个子报表的数据源更改为数据源B。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.