How to resize field for multiline text?
Posted on September 13, 2006 at 6:45am
I have a report similar to a table. Each row is based on one subreport that defines a row and its fields.
Is their a way a field grows with the length of text?
What about multiline texts? How can I fit them into a field?
Any hints are welcome :woohoo:
Posted on September 14, 2006 at 1:50pm
Posted on September 15, 2006 at 6:27am
I think what to change height of text field it possible to make by mean scriptlet. I create new post about this, maybe somebody can will answer.
Posted on September 15, 2006 at 10:14am
Posted on September 15, 2006 at 9:30pm
Set the flag "stretch with overflow" for your textfileds
Posted on September 16, 2006 at 4:33am
With flag â€œStretch with overflowâ€ text field will be stretched by height.
I attach the JRXML sample with multiline and text stretch.
This decision more simple, than to write a scriptlet
Post edited by: Apolo, at: 2006/09/16 04:34
Posted on April 13, 2012 at 6:48am
Posted on July 9, 2014 at 12:39am
<textField isStretchWithOverflow="true" hyperlinkType="None">
<reportElement style="Report Sub-Title" x="0" y="84" width="802" height="20"/>
<textFieldExpression class="java.lang.String"><![CDATA["For the period ...]]></textFieldExpression>