https://issues.apache.org/bugzilla/show_bug.cgi?id=47089

           Summary: XSSFWorkbook.createSheet(...) corrupts Excel file
           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=23533)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23533)
original.xlsm

I use following codes to read an Excel 2007 file and create a worksheet in it,
but the output file cannot be opened by MS Excel (prompt error and need
recovery).

--

Workbook sourceWb = (read "original.xlsm")
sourceWb.createSheet("Sample");
sourceWb.write(new FileOutputStream("output.xlsm"));        

--

Please check the attached "original.xlsm" for testing. Thanks.

-- 
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]

Reply via email to