https://bz.apache.org/bugzilla/show_bug.cgi?id=65478
Bug ID: 65478
Summary: DeferredSXSSFWorkboot not working cellStyle
Product: POI
Version: unspecified
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: major
Priority: P2
Component: SXSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Hello, PIO Team
I heared Apache POI 5.0.0 version upgrade and apply DeferredSXSSFWorkbook. I
really wanted this and it's powerful.
When I apply DeferredSXSSFWorkbook, I found some bug.
When applying a cellStyle based on DeferredSXSSFWorkbook, it's not working and
an error occurs when the excel file is opened.
(Also SXSSFWorkbook is working for me)
DeferredSXSSFWorkbook workbook = new DeferredSXSSFWorkbook(500);
DeferredSXSSFSheet deferredSXSSFSheet = workbook.createSheet();
deferredSXSSFSheet.setRowGenerator(sheet -> {
Row row = sheet.createRow(0);
Cell cell = row.createCell(0);
CellStyle cellStyle = workbook.createCellStyle();
cellStyle.setAlignment(HorizontalAlignment.RIGHT);
cell.setCellStyle(cellStyle);
cell.setCellValue("test");
});
workbook.write(response.getOutputStream());
Could you check it? TYSM.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]