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

New Post: Format Problem (challenge) (General/Text)

$
0
0
Hi Community!

We are using ClosedXML (which is a great library - thx) for a configurable export.

If you open Excel and type in 01.01.2013 the cell is formated as "General".

What we have here is ...
worksheet.Cell("A1").SetValue("01.01.2013");
// RESULT 01.01.2013 (Cell Format = "General")
worksheet.Cell("A2".Value = "01.01.2013";
// RESULT 1012013
Our problem (challenge) is to write the value into Excel without setting the format (like it is done when writing by hand)
Value is formating into "what's possible". Also a filter "01.01.2013..31.01.2013" is formated into an numeric value.

Any suggestions?

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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