如何使 Column Footer 带在 Jasper 报表中动态隐藏?
How to make the Column Footer band dynamically hide in Jasper report?
我在 iReport 中做了一份报告。我在列页脚中包含了一个 textFieldExpression
。我的问题是,即使该行是空白的,它仍然占据了 band 高度的 space,因此将其余字段发送到另一个 sheet.
我的代码如下:
<columnFooter>
<band height="12" splitType="Stretch">
<printWhenExpression><![CDATA[$F{descripcionComentario}!=null]]></printWhenExpression>
<textField>
<reportElement x="42" y="0" width="100" height="12" uuid="5a9cbe9d-486a-4dd4-a865-d421cd7366a6"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{descripcionComentario}]]></textFieldExpression>
</textField>
</band>
</columnFooter>
columnFooter
是 not resizable at run time,您需要找到另一种报告结构来解决您的问题。
解决方案通常是使用您可以访问 groupFooter
频段的群组。
我在 iReport 中做了一份报告。我在列页脚中包含了一个 textFieldExpression
。我的问题是,即使该行是空白的,它仍然占据了 band 高度的 space,因此将其余字段发送到另一个 sheet.
我的代码如下:
<columnFooter>
<band height="12" splitType="Stretch">
<printWhenExpression><![CDATA[$F{descripcionComentario}!=null]]></printWhenExpression>
<textField>
<reportElement x="42" y="0" width="100" height="12" uuid="5a9cbe9d-486a-4dd4-a865-d421cd7366a6"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{descripcionComentario}]]></textFieldExpression>
</textField>
</band>
</columnFooter>
columnFooter
是 not resizable at run time,您需要找到另一种报告结构来解决您的问题。
解决方案通常是使用您可以访问 groupFooter
频段的群组。