mrbahr2003 Posted August 31, 2010 Share Posted August 31, 2010 I have a report with 3 sub-reports in the detail section, one following the next. After the 3 sub-reports, I have some other report details. The issue is if one or more of the sub-reports is empty, then when the report prints, it leaves a white space where the subreport was inserted. Is there a way to collapse the detail section if a sub-report is empty? Or is there a way to have the sub-report with a height of 0 and have it expand automatically if there is data?Thanks Link to comment Share on other sites More sharing options...
szaharia Posted September 2, 2010 Share Posted September 2, 2010 Try to use a <printWhenExpression/> in the subreport <reportElement/>. Hope this helps,sanda Link to comment Share on other sites More sharing options...
Tigerman Posted April 1, 2015 Share Posted April 1, 2015 Use the attribute "Remove Line When Blank "isRemoveLineWhenBlank="true"Regards :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now