rinsha.mohammed Posted March 24, 2021 Share Posted March 24, 2021 I have to get rid of blank space when value of my text field is empty. FOr that I gave isRemoveLineWhenBlank="true" , positionType="Float" and isBlankWhenNull="true". <staticText> <reportElement positionType="Float" x="0" y="40" width="70" height="20" uuid="8bccf322-2ac4-44c7-a552-ef772eb7aaf2"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement textAlignment="Justified" verticalAlignment="Middle"> <font fontName="Arial" size="11" isBold="true"/> </textElement> <text><![CDATA[iTU Review:]]></text> </staticText> <textField textAdjust="StretchHeight" isBlankWhenNull="true"> <reportElement positionType="Float" x="0" y="60" width="514" height="20" isRemoveLineWhenBlank="true" uuid="8f09e167-ed4e-444c-9720-0232329c2242"> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <printWhenExpression><![CDATA[$F{ituReviewInfo} !=null]]></printWhenExpression> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle" markup="none"> <font fontName="Arial" isBold="false"/> </textElement> <textFieldExpression><![CDATA[$F{ituReviewInfo}]]></textFieldExpression> </textField> Link to comment Share on other sites More sharing options...
Tirupathi Mangalarapu Posted March 24, 2021 Share Posted March 24, 2021 You can try using print when expression is true. Link to comment Share on other sites More sharing options...
shreekrishna.shankhwar Posted March 26, 2021 Share Posted March 26, 2021 As some one is already give answer above but i will elborate more.If you want remove the space it will not happen any of the way . jasper is Pixel format designer tool so you need to do this hide and show in detail band then space will not come.You can try using print when the expression is true or false 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