poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yegor Kozlov <ye...@dinom.ru>
Subject Re: XSSFWoorkbook.write() problem
Date Fri, 19 Dec 2008 12:25:39 GMT
https://issues.apache.org/bugzilla/enter_bug.cgi

You will need to register first.

Yegor

> Hello.
> 
> I have to modify the description of my problem. When I open a xlsx file and
> save it in oter path this file has a damaged format. With complex files,
> when I try to open it with excel, it says that the file is damaged but
> sometimes can repair it. With simples files (including the most simple file
> only one cell with a simple text content) excel can open the file without
> errors. My problem is that I need to open the saved file using OpenOffice
> 3.0 which supports xlsx file format. OpenOffice 3.0 can open the original
> xlsx file without problems, but the saved file isn't recognized by
> OpenOffcie 3.0. 
> 
> If I open the saved file with excel and save it again (usign save option
> form excel), now OpenOffice can open it without problems, so I supose that
> exists a save bug that causes a format problem that usually can be repaired
> by excel, but never can be repaired by OpenOffice.
> 
> Another question. Where can I create the bug?? Can you say me the apache poi
> bugzilla url?
> 
> Thanks
> 
> 
> Yegor Kozlov wrote:
>> 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: user-unsubscribe@poi.apache.org
>> For additional commands, e-mail: user-help@poi.apache.org
>>
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message