Create a bug in bugzilla and attach the original xlsx file, sample code to 
reproduce the problem,
and the damaged output.

Yegor

Hello I'm using this code

Workbook xlsDocument=null;
try {
   xlsDocument = WorkbookFactory.create(new FileInputStream(pathOriginal));
} catch (FileNotFoundException ex) {
   ex.printStackTrace();
} catch (Exception ex) {
   ex.printStackTrace();
}

FileOutputStream fos = new FileOutputStream(pathTemp);
xlsDocument.write(fos);
fos.flush();
fos.close();

to open and save without changes an .xlsx document.

If I open the original xlsx file it works properly, but when I try to open
the saved file using Office 2007 it says that the file is damaged. Is this a
bug or am I doing something wrong?

I'm using the Apache POI 3.5 beta 4 version wich is published in the poi
project web site. I tried too to use the poi jar files available in
http://encore.torchbox.com/poi-svn-build/ corresponding to yesterday
(20081217) but I have the same problem.

Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to