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 2008/03/06 11:08:29 UTC
DO NOT REPLY [Bug 44010] Can't open the saved XLS (corrupt file) by
HSSF
https://issues.apache.org/bugzilla/show_bug.cgi?id=44010
arsen <ar...@yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arsen15@yandex.ru
--- Comment #10 from arsen <ar...@yandex.ru> 2008-03-06 02:08:29 PST ---
I have the same problem... xls file was prepared in MSOffice2007 and saved in
MS0ffice2003 Excel (Compatibility Mode).
I only open the workbook and then save it into a new xls (without any
modifications).
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(filePath));
HSSFWorkbook wb = new HSSFWorkbook(fs);
FileOutputStream fos = new FileOutputStream(filePath + "_error1");
wb.write(fos);
POI: poi-bin-3.0.2-FINAL-20080204.zip
xls files att.
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org