How to make the Column Footer band dynamically hid

2019-08-06 05:57发布

I have a report made in iReport. I included a textFieldExpression in the column footer. My problem is that even though the line is blank it still takes up the space of the height of the band and thus sending the rest of fields to another sheet.

The code that I have is the following:

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

1条回答
Fickle 薄情
2楼-- · 2019-08-06 06:42

The columnFooter is not resizable at run time, you need to find another report structure to solve your issue.

The solution often is to use groups where you have access to the groupFooter band.

查看更多
登录 后发表回答