Hi there

 

When dealing with Microsoft Report value formatting, the first question we usually ask is “how to specify a culture info?”

In Italy a valid currency value is “€ 100,00” in USA is “$ 100.00”, and so on

 

for hardcoded localizations it’s enough setting the Language property of any textbox (or anything else applicable) within the report itself to a valid culture string as “en-US”, “fr-FR” or “it-IT”.

imagewe have also to specify a formatting string. “c” is a currency format string, exactly the same used in .NET string.Format method

image

 

instead, if we need a dynamic culture info linked to running application Thread.CurrentCulture property, we simply need specifying a functional value within the textbox Language property to rely on system language

image

now the report engine will set language property of its textboxs by reading external culture info that is easy to configure within any .NET language

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(“it-IT”);

Lascia un commento