增加导出列宽度

master
philip 3 years ago
parent 8542c1a072
commit 291a25dee4

@ -108,7 +108,7 @@ public class ExportAspect {
//------------------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------------------
HSSFWorkbook workbook = new HSSFWorkbook(); HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet(); HSSFSheet sheet = workbook.createSheet();
sheet.setDefaultColumnWidth(15); sheet.setDefaultColumnWidth(20);
HSSFRow row = sheet.createRow(0); HSSFRow row = sheet.createRow(0);
//-------------------------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------------------------
HSSFCellStyle headerStyle = getHeaderStyle(workbook);// 获取列头样式对象 HSSFCellStyle headerStyle = getHeaderStyle(workbook);// 获取列头样式对象

Loading…
Cancel
Save