Jump to content

new line character


jingc3

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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_line_character.jrxml[/file]

 

Post edited by: Cheng.Ken, at: 2007/07/16 10:13

Post edited by: Cheng.Ken, at: 2007/07/16 10:14

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...