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

            Bug ID: 56557
           Summary: Output file get corrupted with SXSSFWorkbook and
                    "chart sheet"
           Product: POI
           Version: 3.10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SXSSF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31653
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31653&action=edit
testfile with chart sheet

With SXSSFWorkbook the stored file gets corrupted if it contains a "chart
sheet". 

This very simple code snippet reproduces the error:

<..>
  Workbook wb = WorkbookFactory.create(new File("in.xlsx"));

  // Using streaming XSSFWorkbook makes the output file invalid
  wb = new SXSSFWorkbook(((XSSFWorkbook) wb));

  FileOutputStream out = new FileOutputStream("out.xlsx");
  wb.write(out);
  out.close();
<..>

I have attached an empty excel-file with two empty sheets, one normal sheet and
one chart sheet, which can be used test.

This is similar to the Bug 49472, which was present in ealier versions.

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