I've just started using Jasper Reports to generate reports from data retrieved using Hibernate. Everything is working, except JR doesn't seem to respect newline characters (\n) in text fields. Is there a way to force line breaks at newline characters?
Set the isStyledText
to true
(tick it) and to break the line use <br/>
.
Example:
text + "<br/>" + newLineText