Subject: | num_format appears to not work |
In looking at the DTD, it looks as though I should be able to use this xml to format a cell as a number:
<row>
<cell><format num_format="true"/>0</cell>
</row>
However, when I run Spreadsheet::WriteExcel::FromXML->XMLToXLS against xml containing such a format, I get this error:
Argument "format" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.6.1/Spreadsheet/WriteExcel/FromXML/Worksheet.pm line 65.
The resulting xls file displays an arrayref rather than the value in cells containing such a format specification (ARRAY(0x872c8b4).
When I do not set the cell as a number format, excel gives me an error about a non-number formatted cell displaying a number and zeroes do not display at all (other numbers do, fortunately, display)
My environment:
Spreadsheet-WriteExcel-FromXML-1.00 (had to patch it to get it to install)
Perl v5.6.1 built for i386-freebsd
FreeBSD 4.8-STABLE
It would be great to get a fix for this so I can display zeroes in my spreadsheet...