https://issues.apache.org/bugzilla/show_bug.cgi?id=49472
Summary: Poi will corrupt xls file when there is a 'Chart
sheet' in the Excel file, Excel 2010
Product: POI
Version: 3.7-dev
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: major
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=25620)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25620)
original file and corrupted file
If the xls file has a 'Chart sheet', poi method Workbook.write(OutputStream)
will corrupt the file. Excel 2007 and earlier does not show the corruption, but
Excel 2010 will detect the corruption and show it.
What we have done here is straightforward. We use HSSFWork's constructor,
HSSFWorkbook(FileInputStream) to read a xls file with Chart sheet from disk,
and directly write it back using method Workbook.write(OutputStream). The file
is corrupted afterwards.
I attached a zip file here including: 1. the original xls file, 2. the
corrupted file, and 3. the screen shot from Excel 2010 when opening the
corrupted file.
--
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]