摘要: for (int i = 0; i <= totalColumn; i++) { sheet.autoSizeColumn((short)i,true); //调整列宽 } 其中totalColumn为总列数 (从0开始计算的,比如Excel中数据是A列到E列,那么总列数就是4) 没有调整列宽之前: 阅读全文
posted @ 2021-12-06 17:29 云村的王子 阅读(1410) 评论(0) 推荐(0) 编辑