Wrap text of Table cell in exported Excel in BIRT

江枫思渺然 提交于 2019-12-10 22:04:43

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!