New Line in Static Text in Jaspersoft Studio

Hello,

How do I insert a new line character in a Static Text box in Jaspersoft Studio?

 

What it looks like right now:

SAMPLE TEXT

 

What I want it to look like:

SAMPLE                           

TEXT

 

Thanks,

Jake.

jin.lee's picture
Joined: May 4 2017 - 7:20am
Last seen: 5 years 10 months ago

On my machine, am using ubuntu linux,  achieve this by pressing SHIFT+alt+ Enter,  while in text mode of text obje

simmtechnology - 5 years 5 months ago

Simmtechnology is correct, also the correct way for Windows - this should be listed as an answer. Just Shift+Enter doesn't work in Windows.

hondaman900 - 4 years 8 months ago

2 Answers:

It's very simple. Just click the static field on the canvas to get into edit mode and press Shift + Enter to enter a carriage return.

hozawa's picture
177333
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago

I think it's simple. Set your Static Text markup style as HTML and use <br> tag.

For example,

"Line One <br/> Line Two"

shashanth's picture
104
Joined: Jul 6 2017 - 10:05am
Last seen: 5 years 10 months ago
Feedback
randomness