1、create a measure
<measure name="myField" class="java.lang.String"> <measureExpression><![CDATA[$F{myField}]]></measureExpression> </measure>
2、add the measure $V{myField}
to crosstab cell
<textField> <reportElement style="Crosstab Data Text" x="0" y="12" width="50" height="12" uuid="2a004def-c91d-40be-ba2a-fac8763fca7b"/> <textElement verticalAlignment="Middle"> <font size="8"/> <paragraph lineSpacing="Single"/> </textElement> <textFieldExpression><![CDATA[$V{myField}]]></textFieldExpression> </textField>