简体   繁体   English

在Crystal报表的备用页面上显示子报表

[英]Displaying sub reports on alternate page in crystal reports

I have created a crystal report in the following order Main report has 2 subreports report a and report b in the 2 details section detail-a,detail-b 我已按以下顺序创建了一个水晶报表。主报表在2个详细信息部分detail-a,detail-b中具有2个子报表报告a和报表b

the data is displayed as 数据显示为

column A,B,C (report a) A,B,C栏(报告a)

Column E,F,G (report b) (new page before checked) E,F,G栏(报告b)(选中之前的新页面)

All fields have "can grow" checked. 所有字段均已“可以增长”。

Problem no. 问题编号 1 1个

This works well if we have single page in both reports. 如果我们在两个报告中都只有一页,则效果很好。 but with large amount of data it will show all pages of report a, then pages of report b but I want it to print as A,B,C then next page E,F,G then next page A,B,C and so on. 但是数据量很大,它将显示报告a的所有页面,然后显示报告b的页面,但是我希望它先打印为A,B,C,然后再打印为下一页E,F,G,然后再打印为下一页A,B,C等上。

Problem no. 问题编号 2 2

Even if I am somehow able to display all records on alternate page and solve problem 1, there comes this issue that if any column out of A,B,C is of more height and corresponding E,F,G are of single line then i want all fields A,B,C and E,F,G to be changed to same height. 即使我能够以某种方式在替代页上显示所有记录并解决问题1,也会出现以下问题:如果A,B,C之外的任何列的高度更高,而对应的E,F,G的行数则是i,希望将所有字段A,B,C和E,F,G更改为相同的高度。 so that records per page of subreport-a and subreport-b will not only be same but also be of same corresponding height . 因此,subreport-a和subreport-b的每页记录不仅相同,而且具有相同的相应高度。

if you can give solution to anyone of the problems stated above, please tell . 如果您可以解决上述任何问题,请告知。

You need to use paging to add new pages before or after your sub reports, split the sub reports into two details section and from section expert under tab called "Paging" check the properties "New Page Before" Or "New Page After" as your need. 您需要使用分页在子报表之前或之后添加新页面,将子报表分为两个详细信息部分,然后从“分页”选项卡下的“专家”部分中,将“新页面之前”或“新页面之后”属性作为您的需要。

shared numbervar lineCount;
lineCount > 25 //or whatever value you want

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM