poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41038] New: - corrupte output XLS file ( read existing xls then write without modification )
Date Fri, 24 Nov 2006 15:08:18 GMT
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=41038>.
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=41038

           Summary: corrupte output XLS file ( read existing xls then write
                    without modification )
           Product: POI
           Version: 3.0-dev
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: neuser1@caramail.com


I'am trying to write to an existing XLS file. For the moment i only open 
existing file then write with POI API.

i use this java code:

in = new BufferedReader(new FileReader(infileName));
POIFSFileSystem fs      =     new POIFSFileSystem(new FileInputStream
(outfileName));
SSFWorkbook wb = new HSSFWorkbook(fs,false);
String finalName = outfileName.substring( 0,outfileName.length()-4) 
+ "_out.xls";
FileOutputStream fileOut = new FileOutputStream(finalName);
wb.write(fileOut);
fileOut.close();
in.close();

- This code works well on simple xls file ( 1 cell with hello ) but problems 
appears with my real input xls file. Excell cannot open the output xls file.( 
Excell 2000/Excell viewer 2003 )
- I use the last release and last dev version. same problem.
- while executing, no error, no exception.

I dont known how to attach my XLS input file

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


Mime
View raw message