[英]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. 我已使用jxls模板生成我的Excel报告。 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 我尝试使用jxls注释,但是没有在单元格中添加正确的注释
jx:autoRowHeight(lastCell="B2") 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
类的名为setColumnView
和setRowView
方法来很好地完成此任务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.