Util.WriteCsv numeric locale formatting

Is there any way to control the numeric formatting output by Util.WriteCsv?

Some of our devs are in non-English countries which use commas as the decimal point. E.g. 14,1 instead of 14.1
This plays havoc when we share reports or try to import in other packages which expect a period as the decimal point.

Can I set the culture for the export as a parameter somehow?

Great utility BTW!


  • Pass in true to the useInvariantCulture parameter:

    Util.WriteCsv (data, "c:\\temp\\test.csv", true);
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!