2014-02-18 79 views
0
Hi All I have a report having two sub reports 
In 1st sub report i have a line in report header and footer. 
And in 2nd sub report i have a line in report header and footer. 

,所以我的2個報告來了一個other.In後,這種情況下我得到兩條線 另一個之後(從一個子報告1頁腳和其他從子報告2頭) 現在我需要抑制第一子報告線時,有一個第二次報告休耕它線抑制方法在部分晶報道

+0

你有什麼條件,隱藏或顯示子報表?你是否想要始終隱藏SubRpt 1或有條件的頁腳? – aMazing

回答

0
I have not tried this solution but I think it will help. 

    1] Create a global variable in your second sub report. 
    2] Set its counter to 0 and increment its value with the number of rows you are getting in 2nd sub report. 
    3] On 1st sub report go to format sub report and in suppress formula check whether global variable is greater than 0 if yes then it will suppress 1st sub report. 

Not sure with the execution flow of crystal reports but its worth giving a try. let me know if you succeed. 

Thanks, 
Pratik