Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: [Bug] Incorrect hadling of serialization for xlsx generated by MS Excel 2010/2013 [13281]

$
0
0
Our application is editing existing xlsx files. Problem is that it works with xlsx created by excel 2007, but does not work if file was saved in excel 2010 or 2013.

Problem is in serialization of some boolean values, in our cases in chart serialization. See following examples from chart.xml:

Original xlsx file:
<c:auto val="0"/>
<c:delete val="0"/>

File modified by NPOI:
<c:auto></c:auto>
<c:delete></c:delete>

val=0 is not written and it seems that excel interprets this as true

Problem is in chart.cs, CT_Boolean.Write that is writing values via XmlHelper.WriteAttribute with writeIfBlank parameter missing (meaning false).

Viewing all articles
Browse latest Browse all 1621

Trending Articles