1
問題: 如果子報表中沒有記錄,我想禁止DetailsSection 4和5。所以問題是,如果它們在表中沒有行,我可以禁止它們子報表。但是當有行時,我會發現報告非常龐大並且重複了很多次。當有數據時,我可以看到所有部分一遍又一遍重複的報告。在Crystal報表中禁止使用空子報表
我有一個水晶報告與5個子報告如下。
- reportHeader
- PageHeader
- DetailsSection1(Subreport1這裏)
- DetailsSection2(Subreport2這裏)
- DetailsSection3(Subreport3這裏)
- DetailsSection4(ApplicantInformation這裏)
- DetailsSection5(CBInformation這裏)
- PageFooter
- ReportFooter
的I,接着的步驟是:
步驟:1(累計表ApplicantInformation的總記錄在該共享變量)
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;
我在主報告中做了所有這些工作,而不是子報告。有什麼我失蹤了嗎?請幫助並感謝那些積極的幫手。
Regards, Chandanan。
Si Detail Section與report Section不同嗎?當我去專家和選定的細節,並說添加然後它插入現有的另一個細節。這是一個快照。 – Chandanan
對不起,我的意思是報告**頁腳**我更新了答案以反映 –
這是怎麼回事?你的意思是如果我們有更多的報告不斷增加他們與許多頁腳,在頁腳添加報告? – Chandanan