jingc3 Posted July 16, 2007 Share Posted July 16, 2007 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 More sharing options...
jingc3 Posted July 16, 2007 Author Share Posted July 16, 2007 It is working by inserting "rn" (with backslash). it was the band height not enough :P Link to comment Share on other sites More sharing options...
xwcheng Posted July 16, 2007 Share Posted July 16, 2007 hi, As your text field's height is big enough you can usethis 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:13Post edited by: Cheng.Ken, at: 2007/07/16 10:14 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now