Skip to content

Commit

Permalink
🔀 :: excel Width수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lyutvs committed Mar 27, 2023
1 parent 2b12396 commit 64227ef
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,11 @@ class ExcelSpiImpl(
insertDataListAtRow(headerRow, attributes, getHeaderCellStyle(workbook))

dataList.forEachIndexed { idx, dataLists ->
sheet.autoSizeColumn(idx+1)
sheet.autoSizeColumn(1)
sheet.autoSizeColumn(2)
sheet.autoSizeColumn(3)
sheet.autoSizeColumn(4)
sheet.autoSizeColumn(5)
sheet.autoSizeColumn(6)
sheet.autoSizeColumn(7)
val row = sheet.createRow(idx + 1)
sheet.autoSizeColumn(idx + 1)
insertDataListAtRow(row, dataLists, getDefaultCellStyle(workbook))
}
sheet.setColumnWidth(1, 7 * 256)

ByteArrayOutputStream().use { stream ->
workbook.write(stream)
Expand Down

0 comments on commit 64227ef

Please sign in to comment.