Jasper Report 中的空格问题

问题描述

当我的文本字段的值为空时,我必须摆脱空白。因为我给了 isRemoveLineWhenBlank="true" 、 positionType="Float" 和 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>

谁能帮我跟踪问题?

enter image description here

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)