https://issues.apache.org/bugzilla/show_bug.cgi?id=46687
Summary: XLSX is corrupted after set value to cell.
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: XSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=23244)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23244)
excel for testing
I use following code try to set a cell value, but after it cannot be opened by
MS Word. (It prompted an error message and asked for recover)
--
Workbook wb = new XSSFWorkbook("original.xlsx");
Sheet sheet = wb.getSheet("HouseShippingOrder");
Cell cell = sheet.getRow(1).getCell(10);
cell.setCellFormula(null);
cell.setCellValue("ABC");
wb.write(new FileOutputStream("output.xlsx"));
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]