首页 > 代码库 > Jasper_crosstab_Crosstab Header
Jasper_crosstab_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>
Jasper_crosstab_Crosstab Header
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。