2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: rvm11 - rvm11 Newline in text fields 2005-11-03 10:29 Hi, how do I use one textfield, but split the data of that field into multiple lines. For example, I have an address textfield which contains the concatenation of address1, address2, city, province, postalcode etc. I would like to make this field place the various address pieces on separate lines. I have tried placing a 'n' character in the data, but that character gets displayed, and the data does not get separated. Thanks in advance By: dhydrated - dhydrated RE: Newline in text fields 2005-11-06 17:53 By using "n", it should print in a new line. Below is my sample of textFieldExpression, where I concatenate 4 fields with "n" in between. <textFieldExpression class = "java.lang.String"> <![CDATA[$F{CUST_MAIL_ADDR_1} + "n" + $F{CUST_MAIL_ADDR_2} + "n" + $F{CUST_MAIL_ADDR_3} + "n" + $F{CUST_MAIL_ADDR_4}]]> </textFieldExpression> It printed four new lines of addresses. Link to comment Share on other sites More sharing options...
mikemaze Posted February 13, 2007 Share Posted February 13, 2007 Hi All, this looks really simple, but using the same mechanism, it doesn't work for me. I'm using iReport 1.3.0Anyone know how to concatenate two fields with a newline-carriagereturn-linefeed between the two fields? Regards MikePost edited by: mikemaze, at: 2007/02/13 01:21 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