poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47559] POI generated xlsx files are not compatible with Excel 2008 Mac SP2
Date Thu, 23 Jul 2009 19:05:58 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47559





--- Comment #16 from Yegor Kozlov <yegor@dinom.ru>  2009-07-23 12:05:56 PST ---
Hi Leif,

Please try app_xml_1.xlsx, now with extended properties (app.xml).

The code to generate is as follows:

        XSSFWorkbook wb = new XSSFWorkbook();
        XSSFSheet sh = wb.createSheet("Sheet1");
        sh.createRow(0).createCell(0).setCellValue("Hi There!");

        POIXMLProperties.ExtendedProperties ext = 
wb.getProperties().getExtendedProperties();
        ext.getUnderlyingProperties().setApplication("Microsoft Excel");

        FileOutputStream out = new FileOutputStream("app_xml_1.xlsx");
        wb.write(out);
        out.close();

Hope it will help. 

Regards,
Yegor

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message