MiditecReportDev Posted April 18, 2017 Share Posted April 18, 2017 Hi :)I'm having a slight problem once again.I have some texts I need to display which are in format of "[Number], [Title]". Now I have several cases with different results.1) Title is short enough: It gets shown completely as intended.2) Title is too long and is one single word: Only thing that get's shown is "[Number], "3) Title is too long but is multiple words: Result is something like "[Number], [Title1] [Title2] " - even if title may have four words.Why does Jasper behave this way in case 2? Cases one and three I can understand. Case two does not make any sense at all. Why does it not show "[Number], [Titl]" (for example ... so just cutting off the word of title where it needs to bet cut, but not drop the whole word? Link to comment Share on other sites More sharing options...
Solution szaharia Posted April 19, 2017 Solution Share Posted April 19, 2017 Hi,to get this behavior, set the net.sf.jasperreports.text.truncate.at.char property to true for your text field.See http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.text.truncate.at.char 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