Thursday, August 21, 2008

Removed Part: /xl/styles.xml error - (While manually manipulating styles of an XLSX document)

I noticed that the "numFmts" block has to be placed as the first child of the styleSheet Document else you will get an error like this "Removed Part: /xl/styles.xml part with XML error. (Styles) Load error. Line 31, column 19."

The error vanished when I placed the numFmts block as the first child of the styleSheet node in the styles.xml file.

-Kalpana (21.08.2008)