hondaman900 Posted August 1, 2021 Share Posted August 1, 2021 I have a report using Free Layout where each field from the record is laid out on the page, and there is only one record per report, so the details band doesn't repeat over multiple records. I'm familiar with setting Print When Expression to hide a line item when a field is blank, but in this case, because all fields have their own layout positions, making a field not display when blank leaves a visible gap in my page. I want the other fields to move to close up the gap and reatain a grid without blank spaces.Does anyone have a solution for this?I'm using Jaspersoft Studio 6.6 Link to comment Share on other sites More sharing options...
gustavofarias Posted August 2, 2021 Share Posted August 2, 2021 Have you tried setting the "Position type" to "Float"?http://jasperreports.sourceforge.net/schema.reference.html#reportElement Link to comment Share on other sites More sharing options...
hondaman900 Posted August 3, 2021 Author Share Posted August 3, 2021 Thanks for the reply. However, setting all the fields and labels in the details band to float position, still leaves a blank space when the print-when-experssion evaluation is false and therefore not displayed. The other fields don't close the gap. Link to comment Share on other sites More sharing options...
gustavofarias Posted August 4, 2021 Share Posted August 4, 2021 You should set the "Remove line when blank" alongside "Print when expression", so when the field is not printing, it will collapse the band, making the "float" positioning take effect. 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