currency symbol oddity

Hi,
I have amended my web.config as follows:
<globalization fileEncoding="utf-8"
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-GB"
/>

So that it will allow String.Format to return a formatted currency in the correct symbol.

I have proved that the above setting works with the following ASPX page
Label l = new Label();
double i = 12.99;

l.Text = i.ToString("C") ;

Page.Controls.Add(l);

BUT!!!
My ReportViewer (in another apsx page) is STILL reporting as USD $
[snippet from my .rdlc form]
=Format(Fields!GBP_band_start.Value.ToString(),"currency")

Is there any obvious reason why ReportViewer is not picking up the locale settings from web.config The .rdlc IS in a sub folder but there is no overriding locale settings - it should be inheriting from the parent no

regards

Joel Hughes

www.jojet.com







Answer this question

currency symbol oddity

  • Nanneq

    Hi,

    There is a langage property for the rdlc file. Set this property with the correct value should resolve your problem.

    Best regards.


  • Tiger.xing

    great, works a treat

    thanks

    Joel


  • currency symbol oddity