如何使Column Footer带动态隐藏在Jasper报表中? [英] How to make the Column Footer band dynamically hide in Jasper report?

查看:238
本文介绍了如何使Column Footer带动态隐藏在Jasper报表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 iReport 中做出的报告.我在页脚中包含了textFieldExpression.我的问题是,即使这行是空白的,它仍然占用了乐队高度的空间,因此将其余字段发送到另一张纸上.

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.

我拥有的代码如下:

<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

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

解决方案通常是使用可以访问groupFooter频段的组.

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

这篇关于如何使Column Footer带动态隐藏在Jasper报表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆