I am making a report with JasperReport, some columns of my MySQL table have 'null' values, I manage to control this value and not show it by assigning the property .blankWhenNull = true
in the field properties. However, the white space is kept, that is, the field that is empty is hidden, but the space of the field is still there, how could I make that space disappear and loop through the fields that contain data? I tried it with a print property; So:
<printWhenExpression><![CDATA[$F{field} != null]]></printWhenExpression>
But I get the same result as when I use .blankWhenNull. Similarly, I assigned the property isBlankWhenNull="true" without success. I appreciate any input.
I show you how to print it:
In the end, I didn't find a solution for this problem, so I had to improvise. What I did was create sub-reports to fill in that gap and that's how it worked.