How to resize field for multiline text?

0
Hi,

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:

Regards,
Darya
darya's picture
30
Joined: Jul 26 2006 - 7:06pm
Last seen: 7 years 12 months ago

7 Answers:

0
Any comments :unsure: ?
darya's picture
30
Joined: Jul 26 2006 - 7:06pm
Last seen: 7 years 12 months ago
0
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.
Apolo's picture
23
Joined: Sep 7 2006 - 8:06pm
Last seen: 7 years 10 months ago
0
feel free :)
darya's picture
30
Joined: Jul 26 2006 - 7:06pm
Last seen: 7 years 12 months ago
0
Set the flag "stretch with overflow" for your textfileds

Giulio
giulio's picture
1463
Joined: Jan 2 2007 - 4:15pm
Last seen: 4 days 4 hours ago
0
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
[file name=Stretch.jrxml size=2326]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Str...
Post edited by: Apolo, at: 2006/09/16 04:34
Apolo's picture
23
Joined: Sep 7 2006 - 8:06pm
Last seen: 7 years 10 months ago
0
THANKS! like a charm!
danmaster666's picture
Joined: Apr 13 2012 - 12:31am
Last seen: 2 years 3 months ago
0

<textField isStretchWithOverflow="true" hyperlinkType="None">
<reportElement style="Report Sub-Title" x="0" y="84" width="802" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA["For the period ...]]></textFieldExpression>
</textField>

manasrathod's picture
Joined: Apr 30 2013 - 12:32am
Last seen: 1 week 6 days ago
Feedback