• Jasper_crosstab_Parameter_Crosstab Header


    corsstab:

    Q : how to show filed value at crosstab Header Part?

    A : via pass parameter in crosstab.

    i.e : show filed 'Group_Header' vaule in crosstab header part. need to add a parameter in crosstab band.

    summary:

    <crosstabParameter name="P_Group_Header">
        <parameterValueExpression><![CDATA[$F{Group_Header}]]></parameterValueExpression>
    </crosstabParameter>

    detail:

    <summary>
        <band height="200">
            <crosstab>
                <reportElement x="0" y="0" width="3960" height="200" uuid="a1f028a0-03f0-452e-bc7b-6f91ea72acb8">
                    <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
                    <property name="com.jaspersoft.studio.unit.y" value="pixel"/>
                    <property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
                </reportElement>
                <crosstabParameter name="P_Group_Header">
                    <parameterValueExpression><![CDATA[$F{Group_Header}]]></parameterValueExpression>
                </crosstabParameter>
                <crosstabHeaderCell>
                    <cellContents>
                        <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
                        <textField>
                            <reportElement isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="690" height="40" uuid="50958c93-df4d-4a77-8059-9b3c3dffb2b1"/>
                            <textElement textAlignment="Left" verticalAlignment="Middle">
                                <font fontName="Arial" size="14" isBold="true"/>
                                <paragraph leftIndent="4"/>
                            </textElement>
                            <textFieldExpression><![CDATA[$P{P_Group_Header}]]></textFieldExpression>
                        </textField>
  • 相关阅读:
    iOS SpriteKit 字体设置无效问题
    2021又来到了!
    其他人员优点
    自己缺点记录
    领导优点分析-于总
    领导优点分析-黄总
    Linux CentOS 7 安装字体库 & 中文字体
    mysql备份数据库
    MySQL mysqldump 导入/导出 结构&数据&存储过程&函数&事件&触发器
    mysql 导入导出数据库以及函数、存储过程的介绍
  • 原文地址:https://www.cnblogs.com/liupuLearning/p/6292453.html
Copyright © 2020-2023  润新知