【发布时间】:2013-05-06 21:18:18
【问题描述】:
我的问题是,即使该行是空白的,它仍会占用波段高度的空间,因此在下一个波段之前存在比平时更大的间隙。
我的 jasper 文件中的波段如下所示:
<band height="30" splitType="Stretch">
<staticText>
<reportElement uuid="274e9a4d-939e-46f6-8508-52ebc9051180" x="0" y="10" width="515" height="20" isRemoveLineWhenBlank="true" forecolor="#111B3F">
<printWhenExpression><![CDATA[$F{projects_count} != "0"]]></printWhenExpression>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="Arial Black" size="14" pdfFontName="jasper/fonts/ARIBLK.TTF"/>
</textElement>
<text><![CDATA[Project experience]]></text>
</staticText>
</band>
这里我有文本 staticText,应该只在 <![CDATA[$F{projects_count} != "0"]]> 时显示。这行得通。在reportElement上我还设置了isRemoveLineWhenBlank="true"
由于高度设置为 30,它仍然在我的报告中占用空间,我似乎无法弄清楚如何不仅不显示文本,而且在不满足某些条件时以某种方式删除带.
【问题讨论】:
标签: jasper-reports