luv2eat Posted September 19, 2008 Share Posted September 19, 2008 hi,I have 4 subreports in the detail section of my report. Not all 4 subreports will have data at once. Is there a way I could set, say when subreport 1 is empty then move subreport 2 into 1's place? I need to get rid of the empty space that the subreport occupies when it has no datathanks Link to comment Share on other sites More sharing options...
jreporter Posted September 19, 2008 Share Posted September 19, 2008 Setting the property "when no data" of the subreports to "No pages" should do the trick... Link to comment Share on other sites More sharing options...
luv2eat Posted September 19, 2008 Author Share Posted September 19, 2008 actually that did not do the trick for me. that setting you stated was the default setting for reports (im creating reports using iReport). the space in the report which the subreport occupied became blank when it does not have data. what i was looking for was to fill that blank space with another component when the subreport is null. is that possible? Link to comment Share on other sites More sharing options...
C-Box Posted September 21, 2008 Share Posted September 21, 2008 Just set the attribute "RemoveLineWhenBlank" at the SubReport element in MasterReport and be sure that there is no other element at vertical axis that prevents the subreport element to free the unused space. hth C-Box 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