2011-07-25 33 views
1

問題: 如果子報表中沒有記錄,我想禁止DetailsS​​ection 4和5。所以問題是,如果它們在表中沒有行,我可以禁止它們子報表。但是當有行時,我會發現報告非常龐大並且重複了很多次。當有數據時,我可以看到所有部分一遍又一遍重複的報告。在Crystal報表中禁止使用空子報表

我有一個水晶報告與5個子報告如下。

  1. reportHeader
  2. PageHeader
  3. DetailsS​​ection1(Subreport1這裏)
  4. DetailsS​​ection2(Subreport2這裏)
  5. DetailsS​​ection3(Subreport3這裏)
  6. DetailsS​​ection4(ApplicantInformation這裏)
  7. DetailsS​​ection5(CBInformation這裏)
  8. PageFooter
  9. 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。

回答

1

而不是創建ApplicantInformationCBInformation子報告的詳細部分創建另外兩個報告頁腳部分。並把子報告在那裏

+0

Si Detail Section與report Section不同嗎?當我去專家和選定的細節,並說添加然後它插入現有的另一個細節。這是一個快照。 – Chandanan

+0

對不起,我的意思是報告**頁腳**我更新了答案以反映 –

+0

這是怎麼回事?你的意思是如果我們有更多的報告不斷增加他們與許多頁腳,在頁腳添加報告? – Chandanan