i've two subreports printing in the summary of the main report. when there's no data in the subreports i'd like them be collapsed.
in order to do that i've set When No Data Type to No Pages in the subreports and i've set Remove Line When Blank to true to both subreports in the main report.
unfortunately it's not working. the subreports are taking all the space even if they're empty.
i've tried to delete the subreports to see if they're the cause and that's it.
awaiting your help!
seems it's not the subreports... following KKriplani's suggesion i've tried ot use the REPORT_COUNT to do it and i've found out the following.
exists_clause and exists_discount_surcharge are the main report variables coming from the subreport's REPORT_COUNTs. i've placed them in order to debug:
previewing it, the first page is taking a lot of space after the detail:
but i see it's not due to the subreports... they're not printed when REPORT_COUNT is equal to 0. everything after detail goes to the second page:
any idea why there's so much space after detail?