2014-02-18 3 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 заголовка) Теперь мне нужно, чтобы подавить линии в 1-м докладе к югу, когда есть второй доклад к югу онПодавление линии в разделе Crystal Reports

под паром
+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 
Смежные вопросы