By: Nathan W. Phelps - nphelps
Word-wrap for staticText fields.
2002-10-03 10:28
I have a long sentence I need to put in a staticText element. Is there anyway to make a single staticText element word wrap?
By: Teodor Danciu - teodord
RE: Word-wrap for staticText fields.
2002-10-04 02:13
Hi,
You simply put the long sentance in the static text
element and adjust yourself the height of this
element.
It should perform the word wrap as expected.
If not (which I doubt), you can still use a text field
element with isStretchWithOverflow="true" and
a static expression that returns your long phrase.
Good luck!
Teodor
Word-wrap for staticText fields.
2002-10-03 10:28
I have a long sentence I need to put in a staticText element. Is there anyway to make a single staticText element word wrap?
By: Teodor Danciu - teodord
RE: Word-wrap for staticText fields.
2002-10-04 02:13
Hi,
You simply put the long sentance in the static text
element and adjust yourself the height of this
element.
It should perform the word wrap as expected.
If not (which I doubt), you can still use a text field
element with isStretchWithOverflow="true" and
a static expression that returns your long phrase.
Good luck!
Teodor
0 Answers:
No answers yet
Solution 1:
Make setWrapText true as shown below
SimpleXlsxReportConfiguration xlsxReportConfiguration = new SimpleXlsxReportConfiguration();
xlsxReportConfiguration.setWrapText(true);
Solution 2.
When you have long sentences, if you want to break a word or it should come in a new line means PressShift+Enter(It will add \n\r)
Solution 3
In my case, it is not working in ms office .so I installed LibreOffice.