New Line in Static Text in Jaspersoft Studio

0

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: 2 years 4 months ago

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

simmtechnology - 1 year 10 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 - 1 year 2 months ago

2 Answers:

5

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
52382
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 6 days ago
2

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
Joined: Jul 6 2017 - 10:05am
Last seen: 2 years 3 months ago
Feedback
randomness