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]