Jump to content
We've recently updated our Privacy Statement, available here ×

Word-wrap for staticText fields.


Recommended Posts

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

Link to comment
Share on other sites

  • 13 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 nr)

 

Solution 3

In my case, it is not working in ms office .so I installed LibreOffice.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...