Hi
I am using jasperreport 1.3.4, I am trying to display a text field using
<textFieldExpression class="java.lang.String"><![CDATA[$P{headerLabel}]]></textFieldExpression>
in which, the headerLabel parameter will have a value like: "Test Case". I want to display it in two lines, so I replaced the space with "\\n", "\\r", or "\\r\\n". None of them work - it ends up only display the first word "Test".
Can anybody help?
Thanks!!
Post edited by: jingc3, at: 2007/07/15 23:27
I am using jasperreport 1.3.4, I am trying to display a text field using
<textFieldExpression class="java.lang.String"><![CDATA[$P{headerLabel}]]></textFieldExpression>
in which, the headerLabel parameter will have a value like: "Test Case". I want to display it in two lines, so I replaced the space with "\\n", "\\r", or "\\r\\n". None of them work - it ends up only display the first word "Test".
Can anybody help?
Thanks!!
Post edited by: jingc3, at: 2007/07/15 23:27
2 Answers:
Posted on July 16, 2007 at 10:12am
hi,
As your text field's height is big enough you can use
this style to accomplish this effective
"good"+"(backslash)n"+"morning"
the attachment is a sample.
hope to help you!
cheng.ken [file name=new_line_character.jrxml size=3263]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/new...
Post edited by: Cheng.Ken, at: 2007/07/16 10:13
Post edited by: Cheng.Ken, at: 2007/07/16 10:14
As your text field's height is big enough you can use
this style to accomplish this effective
"good"+"(backslash)n"+"morning"
the attachment is a sample.
hope to help you!
cheng.ken [file name=new_line_character.jrxml size=3263]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/new...
Post edited by: Cheng.Ken, at: 2007/07/16 10:13
Post edited by: Cheng.Ken, at: 2007/07/16 10:14