Advertisement

07.12.2007 at 07:20AM PDT, ID: 22691763
[x]
Attachment Details

Local numberformat in reporting services

Asked by navipartner in SQL Server 2005, Visual Basic Programming, Visual Studio .NET 2005

Tags: reporting, services, format

Hi,

I am making a report using Reporting Services with Microsft SQL Server 2005 (through Visual Studio). I need to display some numbers, but they default to numbers like: 10000.00. The target number in this case is 10.000,00 (danish numberformat with a different decimal separator and an added thousand separator than english).

This is what I have tried:
1. Formatnumber(number), which gives 10,000.00 (english numberformat) because the machine running reporting services is english.
2. Format(number,"###.###.##0,00") which gives and error
3. Replace(FormatNumber(number),",",".") which is not desirable because:
a) what to do with last "." when all separators are now "."
b) I read about this beeing bad coding because it would give me some problems with different systems

I read about changing the locale setting for the session using LCID or something like that but I am not sure how to use this through reportings services, what code to use and where to put it...

Can you help me?

Thanks in advance!
Kind regards
DavidStart Free Trial
 
Loading Advertisement...
 
[+][-]07.12.2007 at 07:46AM PDT, ID: 19472269

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, Visual Basic Programming, Visual Studio .NET 2005
Tags: reporting, services, format
Sign Up Now!
Solution Provided By: patrikt
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.13.2007 at 05:01AM PDT, ID: 19479898

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32