https://issues.apache.org/bugzilla/show_bug.cgi?id=53404

Yegor Kozlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #7 from Yegor Kozlov <[email protected]> ---
I don't see a bug here. POI-3.6 is more than 2 years old and many bugs have
been fixed since then. 

can you try a simple workaround: if poifs-writer fails with
IllegalArgumentException which indicates that the file was created by a old
version of POI then write it to a byte array and read back. Something like
this:

 wb = new HSSFWorkbook("created by POI-3.6.xls");
 try {
   // do stuff
 } catch (IllegalArgumentException e){

   ByteArrayOutputStream out = new ByteArrayOutputStream();
   wb.write(out);
   wb = new HSSFWorkbook(new ByteArrayOutputStream(out.toByteArray()));

   // do stuff
 }

Let us know if it worked for you.

Cheers,
Yegor

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to