You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2007/03/23 17:51:39 UTC

DO NOT REPLY [Bug 27571] - POI corrupts Excel file beyond repair

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27571>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27571


julianojoaobazzo@yahoo.com.br changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From julianojoaobazzo@yahoo.com.br  2007-03-23 09:51 -------
Hi, I am still facing this bug. I tried with version 2.5 and the
3.0beta(20061212) and the problem remained, i.e., the generated file is corrupted.

A weird thing happened when I removed the first worksheet (tab), the generated
file was NOT corrupted.
I was thinking that the problem was with the MACROS but it seems not.

See the details:
1) Java code:
...
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("C:\\table.xls"));
HSSFWorkbook wb = new HSSFWorkbook(fs);
FileOutputStream fileOut = new FileOutputStream("C:\\table_output.xls");
wb.write(fileOut);
fileOut.close();
...

2) The input file attached table.xls

3) The output file attached table_output.xls

4) The modified file with the first worksheet removed
table_removed_first_worksheet.xls.

Thanks,
Juliano

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/