ttmgybta Posted March 7, 2011 Share Posted March 7, 2011 I pass values in to parameters in to my Jasper report.This works fine, but it is a very long string and now I would like to add a break so it starts on a new line in the Text Field.How do I add a break?“/n” doesn’t work Regardsttmgybta Link to comment Share on other sites More sharing options...
ttmgybta Posted March 7, 2011 Author Share Posted March 7, 2011 Found a solution!In the properties on the text Field “Markup” to html and in the String adding <br> For example: var myString = “ My long text <br> this is on the new line” Link to comment Share on other sites More sharing options...
mvw Posted March 9, 2011 Share Posted March 9, 2011 Use "\n" and check "Stretch With Overflow"RegardsMiguelPost Edited by mvw at 03/09/2011 01:09 Link to comment Share on other sites More sharing options...
cumanji Posted September 26, 2014 Share Posted September 26, 2014 On the properties window where you edit the text, you can add new line just by pressing enter Link to comment Share on other sites More sharing options...
Solution pavel_dabrowskiwp.pl Posted October 11, 2020 Solution Share Posted October 11, 2020 "n" working. This is best solution. 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