Jump to content
Changes to the Jaspersoft community edition download ×

Newline in text fields


2004 IR Help

Recommended Posts

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

  • 5 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi All,

this looks really simple, but using the same mechanism, it doesn't work for me. I'm using iReport 1.3.0

Anyone know how to concatenate two fields with a newline-carriagereturn-linefeed between the two fields?

 

Regards

 

Mike

Post edited by: mikemaze, at: 2007/02/13 01:21

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...