new line in Text Field
Posted on March 7, 2011 at 7:45am
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
Regards
ttmgybta
Joined: Feb 18 2011 - 3:10am
Last seen: 12 years 7 months ago
Posted on October 11, 2020 at 5:50am
"\n" working. This is best solution.
Joined: Aug 25 2020 - 6:48am
Last seen: 1 year 6 months ago
Posted on March 7, 2011 at 8:06am
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”
Joined: Feb 18 2011 - 3:10am
Last seen: 12 years 7 months ago
Posted on March 8, 2011 at 4:49pm
Use "\\n" and check "Stretch With Overflow"
Regards
Miguel
Post Edited by mvw at 03/09/2011 01:09
Joined: Oct 8 2009 - 10:27pm
Last seen: 6 years 7 months ago
Posted on September 26, 2014 at 5:11am
On the properties window where you edit the text, you can add new line just by pressing enter
Joined: Apr 2 2012 - 1:08am
Last seen: 6 years 5 months ago