![](/img/trans.png)
[英]JXLS + SXSSF - How to generate Excel file without including the template along with the actual generated report?
[英]How to autoSize cells in the jxls template, so that generated report also will have autosized cells
我已使用jxls模板生成我的Excel報告。 報告數據未正確對齊。 我需要 ,
將根據數據長度(行和列)自動調整報表的單元格大小。
我嘗試使用jxls注釋,但是沒有在單元格中添加正確的注釋
jx:autoRowHeight(lastCell =“ B2”)
我無法在此處附加輸出圖像,我需要下面的東西,
將根據數據長度(行和列)自動調整報表的單元格大小。
如果您想將列調整為一定的寬度/高度,則可以使用WritableSheet
類的名為setColumnView
和setRowView
方法來很好地完成此任務。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.