Es muss ein weiterer Arbeitschritt außerhalb des iReport durchgeführt werden! (XML-Editor)
{code-xml} <style name="style1" isDefault="true" markup="styled" fontName="Arial" fontSize="10" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"> <conditionalStyle> <conditionExpression><![CDATA[$F{strlieferantenname}.length() > 2]]></conditionExpression> <style fontSize="6"/> </conditionalStyle> </style> {code} |
Das zu ändernde Textelement muss auskommentiert werden
<textField evaluationTime="Report" isBlankWhenNull="true"> <reportElement style="style1" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="248" height="12" isRemoveLineWhenBlank="true" forecolor="#010101"> </reportElement> <!--<textElement> <font fontName="Arial" size="9"/> </textElement>--> <textFieldExpression class="java.lang.String"><![CDATA[$F{strlieferantenname}]]></textFieldExpression> </textField> |