【问题标题】:How to make the Column Footer band dynamically hide in Jasper report?如何使 Column Footer 带在 Jasper 报告中动态隐藏?
【发布时间】:2017-01-28 05:22:21
【问题描述】:

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

【问题讨论】:

    标签: jasper-reports


    【解决方案1】:

    columnFooternot resizable at run time,您需要找到另一个报告结构来解决您的问题。

    解决方案通常是使用您可以访问groupFooter 乐队的群组。

    【讨论】:

    • 谢谢,我已经找到了解决方案,我刚刚将columnFooter 更改为groupFooter 乐队,它按我的意愿工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多