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

Closed Unassigned: Excel found unreadable content when Style.NumberFormat.Format = "MM/dd/yyyy HH:mm:ss.0000" [9357]

$
0
0
Excel found unreadable content when Style.NumberFormat.Format = "MM/dd/yyyy HH:mm:ss.0000"

Milliseconds using Style.NumberFormat.Format = "MM/dd/yyyy HH:mm:ss.000" works fine.

7 decimal places would be nice B-)

This could be an Excel issue or other limitation beyond the scope of ClosedXML. But, you may want to trap for it to prevent generating an XLSX file that Excel does not like.

//AJ

PS: ClosedXML is GREAT WORK!!!

Comments: That's not a valid Excel format. I don't think it's a good idea to trap formats because they can change from one Excel version to another.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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