I am using RDLC reports on my web page to show some data as a local report. Everything works fine but the numbers are not formatted according to my locale culture settings (sl-SI) and I am running out of ideas how to fix the problem.
Example. I have a TextBox of value:
- =First(Fields!Count.Value, "PhoneCallsDS")
where “Count” is integer, and the format is:
- Number
- Use regional formatting = yes
- Decimal places=0
- Use 1000 separator(.)=yes
In the code before the report is populated I set the culture:
CultureInfo cInfo = new CultureInfo(“sl-SI”, false);
Thread.CurrentThread.CurrentCulture = cInfo;
Thread.CurrentThread.CurrentUICulture = cInfo;
After this I would expect the text box value to be formatted 2.358 as required by the sl-SI culture but is 2,358.
Does anybody knows what I am doing wrong?
Thank you!