【发布时间】:2011-07-25 17:05:17
【问题描述】:
问题: 如果子报表中没有记录,我想抑制 DetailsSection 4 和 5。所以问题是,如果子报表的表中没有行,我可以抑制它们。但是当有行时,我看到报告很大并且重复了很多次。当有数据时,我可以看到报告中的所有部分一次又一次地重复。
我有一个包含 5 个子报表的 Crystal 报表,如下所示。
- 报告头
- 页眉
- DetailsSection1(此处为子报表1)
- DetailsSection2(此处为子报表2)
- DetailsSection3(此处为子报表3)
- DetailsSection4(此处为申请者信息)
- DetailsSection5(此处为CBInformation)
- 页脚
- 报表页脚
我遵循的步骤是:
Step:1(在这个共享变量中收集表申请人信息的总记录)
Create a shared Variable AppInfoCount with the following content in the formula
WhilePrintingRecords;
Shared NumberVar AppCount;
AppCount := count({ApplicantInformation.DirectionID});
""
第 2 步:使用此变量来抑制主报告中的 detailsection4。
So In the Section Expert-->DetailSection4-->
under Supress(No Drill-down)(x-2) I gave the formula
WhilePrintingRecords;
Shared NumberVar AppCount;
if( AppCount= 0 ) then True else false;
我在主报告中完成了所有这些,而不是在子报告中。有什么我想念的吗?请帮助并感谢那些积极的帮助者。
问候, 钱达南。
【问题讨论】:
标签: c# .net crystal-reports