Your code works fine on my machine.

Windows XP SP 1
OpenOffice 1.1.3 Portuguese
POI-cvs-2004-12-14

Probably is a linux OpenOffice issue.
I can't test your attached file because it didn't came with the message.

Xavier Vanderstukken wrote:

I use this very simple code to create an empty xls file.

HSSFWorkbook wb = new HSSFWorkbook();
FileOutputStream fileOut = new FileOutputStream(path);
wb.write(fileOut);
fileOut.close();

When I try to open it with OpenOffice 1.1.3 I receive the following message :

An unrecoverable error has occured.

An the file can not be opened.
However I have no problem to open it with Microsoft Excel.

My operating system is Gentoo Linux.

I attach the generated Excel file


------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to