How to stretch textfield in a JasperReport as per dynamic content?

Just add the isStretchWithOverflow="true" to the textField that you want as an element.

<textField isStretchWithOverflow="true">
    <reportElement x="279" y="7" width="202" height="13"/>
    <textElement/>
    <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
</textField>

Leave a Comment