简体   繁体   English

在单晶报表中显示两个报表数据

[英]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.

相关问题 水晶报表未显示使用Asp.net的数据 - Crystal report is not showing data using Asp.net Crystal Reports 13.0版中的报告失败错误? - Report Failed Error in Crystal Reports version 13.0? 如何在Crystal Report的数据源中设置两个表 - How to set two table in Data Source in Crystal Report 如何生成相同格式的多个报表-WPF中的Crystal报表 - How to generate multiple reports of same format - Crystal Report in WPF 如何在Crystal Reports的两个详细信息部分中使用一列 - How to use one column in two detail sections with Crystal Reports 如何在Crystal Report中将多行字符串值显示为单行 - how to display multiple line string values into single line in crystal report 根据晶体报表中的字段宽度将字符串分成两部分 - Break string into two parts on basis of the field width in crystal report 不使用Crystal报表从Report Viewer的打印预览中将图像打印到纸张上 - Not printing Images to paper from Print preview from report Viewer using crystal reports 在水晶报表中添加两个表的字段总和,得出奇怪的结果 - Adding Sum of fields of two tables giving strange result in Crystal Report 如何在Crystal报表中创建两对页面标题和详细信息 - How to create two pair of page header and details in crystal report
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM