问题
I am using BIRT 4.4.1 in eclipse for report generation.
I would like to wrap my text of Table Header, it works fine in webviewer but when i exported to excel the table cell text is in a single line, and also the text is overflowed. I dont want to make the cell width equal to the content, I would like to wrap the text based on its container width.
I have set the cell width and label whitespace property as auto. is it correct, or what do i do to make it work in exported excel report?
In Webview

After exported, Excel view

回答1:
In 4.4.2 export as XLS (not xlsx). As a workaround you can also add a line return within the text and that will appear correctly when you export to xlsx.
A third option that works with xlsx output is to select the text box in the cell, and in General Properties set the Whitespace to Preformatted. Then, either set the header cell size to a height that covers the required text OR in general properties of the entire report, set the layout to Auto Layout.
来源:https://stackoverflow.com/questions/29815963/wrap-text-of-table-cell-in-exported-excel-in-birt