Philip Nienhuis wrote:
> Subject says all.
>
> Steps to reproduce:
>
> - Create an OOXML along the lines of (Octave/Matlab script language):
> wb = javaObject ("com.extentech.ExtenXLS.WorkBookHandle", true);
>
> - Remove sheets #1 and #2 (keep Sheet #0). Note: all these sheets are
> empty.
> Optionally rename Sheet1 to "EmptySheet"
>
> - Write file to disk (using Octave/Matlab):
> xlsout = javaObject ("java.io.FileOutputStream", "io-test.xlsx");
> xls.workbook.write (xlsout);
> xlsout.close ();
> xls.workbook.close ();
>
> Excel 2013 and LibreOffice read this file just fine.
> Apache POI apparently parses it OK but spots an empty cell B4.
> Inspecting it using 7-zip yields nothing special (admittedly I'm no
> OOXML guru). However there is indeed a cell B4 in the only worksheet:
>
> (Expanded sheet 1 "EmptySheet":)
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <worksheet
> xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
> xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><dimension
> ref="A1:B5"/>
> <sheetViews>
> <sheetView tabSelected="1" workbookViewId="0"></sheetView>
> </sheetViews>
> <sheetFormatPr defaultColWidth="8.0" defaultRowHeight="12.75"/>
> <sheetData>
> <row r="4">
> <c r="B4" s="15"></c>
> </row>
> </sheetData>
> </worksheet>
FTR, I see that cell B4 is actually valid as the "empty" file was made
along the lines of this Octave/Matlab call:
xlswrite ('io_test.xls', {''}, 'EmptySheet', 'b4')
where {''} is an empty string.
Philip
|