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





--- Comment #24 from Leif Nelson <[email protected]>  2009-07-27 09:51:48 PST ---
(In reply to comment #21)
> Leif,
> 
> I fixed POI to generate files compatible with Excel 2008 Mac sp2. The fix was
> committed in r79735 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=79735 
> ). 
> 
> I hope that Microsoft will release a fix for Excel Mac soon. Meantime, you can
> patch existing files with the following code:
> 
>         XSSFWorkbook wb = new XSSFWorkbook(path);
> 
>         POIXMLProperties.ExtendedProperties ext = 
> wb.getProperties().getExtendedProperties();
>         ext.getUnderlyingProperties().setAppVersion("Microsoft Excel");
> 
>         FileOutputStream out = new FileOutputStream(path);
>         wb.write(out);
>         out.close();
> 
> 
> Yegor

I believe this should be changed to: 

ext.getUnderlyingProperties().setApplication("Microsoft Excel");

The "AppVersion" field has something like "12.000" in it in my samples.

Sorry I didn't notice this earlier,

--Leif

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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