Archive for the ‘ Jasper Report ’ Category

Manage Visibilty of component / Band in iReport Jasper Report

A band becomes invisible in the report if its height is set to zero.
We can also make a band invisible using the Print When Expression option. If we write new Boolean(false) in “Print When Expression” of a band, then that will make the band invisible, even though its height is set to greater than zero. If we write new Boolean(true), then the band will be visible. It is true by default.

you can also setup band to be invisible with use of Parameter of type boolean

Create a parameter and write the “$P{ParameterName}” in “Print When Expression” of band.