2001 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Nathan W. Phelps - nphelps Word-wrap for staticText fields. 2002-10-03 10:28I 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 More sharing options...
prakashk827 Posted March 17, 2020 Share Posted March 17, 2020 Solution 1:Make setWrapText true as shown belowSimpleXlsxReportConfiguration 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 3In my case, it is not working in ms office .so I installed LibreOffice. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now