【发布时间】:2011-09-19 09:06:47
【问题描述】:
我无法在 jrxml 的表格中显示复选框。
这是我的代码示例:
<detail>
<band height="45" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement style="MyCustomStyle" stretchType="RelativeToTallestObject" x="650" y="0" width="80" height="35"/>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.Boolean"><![CDATA[$F{myBooleanVariable}]]>
</textFieldExpression>
</textField>
</band>
</detail>
该列仅显示 true 或 false。我认为在 textFieldExpression 元素中指定 class="java.lang.Boolean" 会将值转换为复选框,但显然,我需要的不止这些。
知道我做错了什么吗?
【问题讨论】:
标签: checkbox jasper-reports xmltable