Summary: | Exception while updating XLSX file | ||
---|---|---|---|
Product: | POI | Reporter: | Badari <badbadri> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | Simple xlsx file with a few columns |
Description
Badari
2016-06-07 17:18:11 UTC
The exception is raised when the method is called more than once // Temp.xlsx is output file. Input file is always "EDIStatsTemplate.xlsx" ExcelUpdater excelUpdater = new ExcelUpdater("Temp.xlsx"); int txns = 44; excelUpdater.updateXLSX(new Object[] { "X12", "856", "4010", "LG", txns }); txns = 54; excelUpdater.updateXLSX(new Object[] { "X12", "856", "4010", "LG", txns }); Apologies. I closed the output file prematurely but tried to update. That caused the exception. |