简体   繁体   中英

How to autoSize cells in the jxls template, so that generated report also will have autosized cells

I have used jxls template to generate my excel report. The report data is not aligned properly. I need ,

Report's cells to be autosized based on the data length - both rowwise & columnwise.

I have tried to used jxls comments, but didnt get correct comments to be added in the cells

jx:autoRowHeight(lastCell="B2")

i couldn't attache output image here,I need below things,

Report's cells to be autosized based on the data length - both rowwise & columnwise.

如果您想将列调整为一定的宽度/高度,则可以使用WritableSheet类的名为setColumnViewsetRowView方法来很好地完成此任务。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM