Summary: | Formula: changed sheet name after re-order | ||
---|---|---|---|
Product: | POI | Reporter: | Michele <michele.bissoli.83> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | chiranjeeviavvaru, onealj |
Priority: | P2 | ||
Version: | 3.13-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Michele
2015-12-17 09:51:19 UTC
For everyone who have this problem, I have found a workaround: at start create all the sheets and only after insert all the data, so without execute a re-order. Example: HSSFWorkbook workbook = new HSSFWorkbook(); HSSFSheet first = workbook.createSheet("first"); HSSFSheet second = workbook.createSheet("second"); HSSFSheet third = workbook.createSheet("third"); first.createRow(0).createCell(0).setCellValue(1); second.createRow(0).createCell(0).setCellValue(2); HSSFRow row = third.createRow(0); row.createCell(0).setCellFormula("first!A1"); row.createCell(1).setCellFormula("second!A1"); This is only a workaround, the problem still exists. *** Bug 57474 has been marked as a duplicate of this bug. *** |