Jump to content
We've recently updated our Privacy Statement, available here ×

iReport 5.6: Conditional word wrapping


michael.kolowicz

Recommended Posts

I have a long list of name (Firstname and Lastname). Beetwen this names is a ", " for easy reading. The list of names is different long. Sometimes 3 oder 4 name - from time to time it can be that we have 20 name in the list.

Exampel: John Doe, Jane Doe, Peter Pan, Paul Peter

Now i have a textfield. When the list is so long, that it not fit in one line, then splitet in two or more lines. That it fine - but sometime it split in the name - not at the end of the name (the end of the Name is the ,)

The result is :

John Doe, Jane Doe, Peter
Pan, Paul Peter

How can i configure that the wrapping to next line is only when a "," is the last charater

What I want:

John Doe, Jane Doe,
Peter Pan, Paul Peter

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I've use iReport and now Jaspersoft Studio open source a lot and I don't think you can configure JasperReports to split lines in text fields at the comma instead of at the space.
Is there a particular reason you need to display that list of names in that format?
Potential alternative ideas could be to display the names:
- in lists place side by side
- or in tables with multiple columns in the table details band.
- or in the main detail band directly still with multiple columns.

As a side note using the latest version of Jaspersoft Studio community edition you would still be able to work on your same reports and you would also have the option to change the font size to adapt to the text field width which may also be an option for you.

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