michael.kolowicz Posted March 3, 2023 Share Posted March 3, 2023 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 PeterNow 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, PeterPan, Paul PeterHow can i configure that the wrapping to next line is only when a "," is the last charaterWhat I want:John Doe, Jane Doe,Peter Pan, Paul Peter Link to comment Share on other sites More sharing options...
Raphaël Peguet Posted March 7, 2023 Share Posted March 7, 2023 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 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