Jasper reports 如何在Jasper报表中动态隐藏列页脚标注栏?

Jasper reports 如何在Jasper报表中动态隐藏列页脚标注栏?,jasper-reports,Jasper Reports,我在iReport中做了一份报告。我在列页脚中包含了一个textFieldExpression。我的问题是,即使该行是空白的,它仍然会占用标注栏高度的空间,从而将其余字段发送到另一个工作表 我拥有的代码如下: <columnFooter> <band height="12" splitType="Stretch"> <printWhenExpression><![CDATA[$F{descripcionComentario}!=n

我在iReport中做了一份报告。我在列页脚中包含了一个
textFieldExpression
。我的问题是,即使该行是空白的,它仍然会占用标注栏高度的空间,从而将其余字段发送到另一个工作表

我拥有的代码如下:

<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>

列页脚是,您需要找到另一个报告结构来解决问题


解决方案通常是使用您可以访问
groupFooter
栏位的组。

如果
栏位footer
是,您需要找到另一个报告结构来解决问题


解决方案通常是使用您可以访问
groupFooter
栏位的组。

谢谢,我已经找到了解决方案,我刚刚将
columnFooter
栏位更改为
groupFooter
栏位,它按照我的要求工作。谢谢,我已经找到了解决方案,我刚把
columnFooter
改为
groupFooter
波段,它按我的要求工作。