Thousand separator on RDLC report (NAV2016)

ACaignie
Member Posts: 91
Hello,
I'm having a problem with the format of decimals on my report. The format of the decimal I want to print is "12.456,78", always with 2 decimals and a separator for thousands and decimals.
On a page this is displayed correctly, but on a report this is displayed as "12 456,78" (space as thousand separator).
This is the expression of the field on the report: =format(cdec(Code.GetData(8,10)), "#,##0.00")
The language of the report is set to =User!Language
I have checked the regional settings of the client, this is OK. Printing in NAV2009 is with this expression gives the required result.
The version of NAV is 9.0.45834.0 (which is CU16 I think), I design the report in VS Community 2015.
Does anyone have an idea how I can get this correct.
Kind regards,
Andy


I'm having a problem with the format of decimals on my report. The format of the decimal I want to print is "12.456,78", always with 2 decimals and a separator for thousands and decimals.
On a page this is displayed correctly, but on a report this is displayed as "12 456,78" (space as thousand separator).
This is the expression of the field on the report: =format(cdec(Code.GetData(8,10)), "#,##0.00")
The language of the report is set to =User!Language
I have checked the regional settings of the client, this is OK. Printing in NAV2009 is with this expression gives the required result.
The version of NAV is 9.0.45834.0 (which is CU16 I think), I design the report in VS Community 2015.
Does anyone have an idea how I can get this correct.
Kind regards,
Andy


0
Best Answer
-
Please have a look into this post: https://blogs.msdn.microsoft.com/nav/2014/09/08/windows-regional-settings-and-number-formatting-in-rdlc-reports/
Does this apply to your environment?Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.5
Answers
-
Hi,
Have you checked 'Number' option in 'Number' tab of Textbox property?0 -
Hi,
I have tried it now, and the result is the same. I have set that I want to use a 1000 separator (it shows a point), but still the result is the same.
I suspect the problem lies with the default regional settings of NL-be, which has a space as 1000 separator, and that the report generator just ignores every change you do to the regional settings.
0 -
Hi,
I too guess so. Tried changing the language property of this textbox alone?.0 -
Hi,
Indeed this works, but causes another issue: we are an international company and some users work with a point as decimal separator, so they need the report with their regional settings.
For the moment I think we will use another regional setting (NL-nl) which has a thousand separator0 -
Please have a look into this post: https://blogs.msdn.microsoft.com/nav/2014/09/08/windows-regional-settings-and-number-formatting-in-rdlc-reports/
Does this apply to your environment?Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.5 -
Hi,
Yes this might be a solution. As I understand it the report viewer will never take customized regional settings into account, so I will try to update NL-be.
Thanks,
Andy0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions