엑셀 헤더셀 폭 설정 수정

main
mjkhan21 11 months ago
parent 65398b7f45
commit f7ebcb690e

@ -94,17 +94,15 @@ public class Excl01Controller extends ApplicationController {
.setFilename("부과제외 목록.xlsx") .setFilename("부과제외 목록.xlsx")
.worksheet(0); .worksheet(0);
CellStyle XLSWriter.Styler header = new XLSWriter.Styler()
header = xlsx.cellStyle(new XLSWriter.Styler()
.width(20) .width(20)
.foregroundColor(HSSFColor.HSSFColorPredefined.LIGHT_BLUE.getIndex()) .foregroundColor(HSSFColor.HSSFColorPredefined.LIGHT_BLUE.getIndex())
.configure(styler -> { .configure(styler -> {
Font font = xlsx.workbook().createFont(); Font font = xlsx.workbook().createFont();
font.setColor(HSSFColor.HSSFColorPredefined.WHITE.getIndex()); font.setColor(HSSFColor.HSSFColorPredefined.WHITE.getIndex());
styler.font(font); styler.font(font);
}) });
), CellStyle numeric = xlsx.n_nn0();
numeric = xlsx.n_nn0();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("부과제외 목록", XLSWriter.Styler.CENTER) .value("부과제외 목록", XLSWriter.Styler.CENTER)

Loading…
Cancel
Save