Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Styles.xml numFmts 2 instead of 1

$
0
0
Hello,

I'm facing a problem which a bit wierd:
When I a download my Excel generated by ClosedXML, 9 times on 10 it is ok.
1 time on 10, the design totally messed up.
So, I look closely to the generated file which has the design totally messed up:
The file in the folder "xl" called "styles.xml" has this:
<x:numFmts count="2"><x:numFmt numFmtId="0" formatCode="dd/mm/yyyy" /><x:numFmt numFmtId="1" formatCode="#,##0" /></x:numFmts>
Instead of:
<x:numFmts count="1"><x:numFmt numFmtId="0" formatCode="#,##0" /></x:numFmts>
or:
<x:numFmts count="1"><x:numFmt numFmtId="0" formatCode="dd/mm/yyyy" /></x:numFmts>
When numFmts is at 2 => The design is K.O.

Is someone had the same issue?

As Data, I have some tables and pivot tables.

Thank you for reading.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>