Hi, Is there anyway that I can distinguish the output format (xls, pdf, csv,..) in jrxml. I need to apply different pattern for each output format. Thank you for your help. Code:<textField isStretchWithOverflow="true" isBlankWhenNull="true"><reportElement key="textField" style="detail" x="1290" y="0" width="90" height="18" stretchType="RelativeToTallestObject"><printWhenExpression>new Boolean({OUTPUT_FORMAT}.equals("EXCEL"))</printWhenExpression></reportElement><textFieldExpression class="java.lang.Double"><![CDATA[new DecimalFormat("#,##0.0000")).format($F{test}]]></textFieldExpression></textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"><reportElement key="textField" style="detail" x="1290" y="0" width="90" height="18" stretchType="RelativeToTallestObject"><printWhenExpression>new Boolean({OUTPUT_FORMAT}.equals("PDF"))</printWhenExpression></reportElement><textFieldExpression class="java.lang.Double"><![CDATA[new DecimalFormat("#,##0.00")).format($F{test}]]></textFieldExpression></textField>