I just downloaded ClosedXML for use in a small app I'm writing. In the app, I load in some data from a database to output to an Excel file. My local number format uses comma for a decimal indicator. It looks like ClosedXML doesn't recognize these as numbers, with the result that they get saved as text and I have to manually convert them when I open the file.
I've tried setting the DataType of the cell to XLCellValues.Number, but when I do, an exception is thrown, like "Cannot set data type to Number because '1534,8250' is not recognized as a number." It appears that this comes from ClosedXML's use of CultureInfo.InvariantCulture, rather than CultureInfo.CurrentCulture.
Is there any way to get around this, short of replacing all commas with periods and/or recompiling the ClosedXML project to use CurrentCulture?