1、导出任务树调整最大列宽
This commit is contained in:
@@ -720,7 +720,7 @@ public class ExcelUtil {
|
||||
|
||||
// 计算列宽:字符数 × 256(POI列宽单位) + 边距(2000)
|
||||
// 256 = 1个字符宽度,2000 = 边距(可根据需求调整)
|
||||
int columnWidth = Math.min(maxLength * 256 + 2000, 65535); // 最大列宽不超过65535
|
||||
int columnWidth = Math.min(maxLength * 256 + 2000, 65280); // 最大列宽不超过65535
|
||||
sheet.setColumnWidth(columnIndex, columnWidth);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user