엑셀 헤더셀 폭 설정 수정

main
mjkhan21 11 months ago
parent 65398b7f45
commit f7ebcb690e

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

Loading…
Cancel
Save