Yes, I tried closing streams etc. makes no difference.

No mixed POI

Paul



From:   Andreas Beeker <[email protected]>
To:     POI Users List <[email protected]>
Date:   18/03/2016 19:22
Subject:        Re: Simple example doesn't open in Excel 2010



Excel 2016 and Libre Office don't complain.
Can you upload you generated file somewhere - so i can compare it against 
mine?
my first guess was, that I would close the FileOutputStream ... but at 
least in my environment your code works.
I assume you have read the FAQ and don't mix POI versions and use the 
latest schemas ...

Andi

On 18.03.2016 20:09, Paul Slootweg wrote:
>   Workbook wb = new XSSFWorkbook();
>
>     Sheet sh = wb.createSheet("Sheet1");
>
>     Row r = sh.createRow(0);
>
>     Cell c = r.createCell(0);
>     c.setCellValue("Cell1");
>
>     wb.write(new FileOutputStream("file.xlsx"));



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

EDW Technology Limited is a company registered in England and Wales with 
company number 3112883 and VAT number 667767961. 
Registered office: EDW House, 3 Radian Court, Knowlhill, Milton Keynes, MK5 8PJ

Reply via email to