Each of the following objects has a public Culture property that allows you to define how ActiveReports formats data when the OutputFormat is set to D (date), C (currency), or other .NET format specifiers.
![]() |
Note: The default value for the Culture property is (default, inherit). For the ActiveReport object, this is the culture of the current thread. For the TextBox and ChartControl, this is the culture of the ActiveReport object. |
Design Time
At design time, you can set the globalization culture in the Visual Studio Properties grid.
To localize an ActiveReport at design time
- In the Design view of the report, select the ActiveReport object in the Properties grid.
- Drop down the Culture property list, and select the culture that you want to apply to the report.
To localize a TextBox at design time
- In the Design view of the report, select the TextBox control that you want to localize in the Properties grid.
- Drop down the Culture property list, and select the culture that you want to apply to the textbox.
To localize a Chart at design time
- In the Design view of the report, select the ChartControl in the Properties grid.
- Drop down the Culture property list, and select the culture that you want to apply to the chart.
Run Time
You can also specify a culture in code. For a list of System.Globalization culture codes, see Cultures.
To localize an ActiveReport at run time
- In the Design view of the report, double-click in the grey area below the report design surface to create an event handling method for the ReportStart event.
- In the code view of the report that appears, paste code like the following.
To write the code in Visual Basic.NET Visual Basic.NET code. Paste INSIDE the ReportStart event.
Copy CodeMyReport.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US") C# code. Paste INSIDE the ReportStart event.
Copy CodeMyReport.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
To localize a TextBox at run time
- In the Design view of the report, double-click the section containing the TextBox control that you want to localize to create an event handling method for the section Format event.
- In the code view of the report that appears, paste code like the following in the Format event.
To write the code in Visual Basic.NET Visual Basic.NET code. Paste INSIDE the Format event.
Copy CodeTextBox1.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US") C# code. Paste INSIDE the Format event.
Copy CodetextBox1.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
To localize a Chart at run time
- In the Design view of the report, double-click the section containing the ChartControl that you want to localize to create an event handling method for the section Format event.
- In the code view of the report that appears, paste code like the following in the Format event.
To write the code in Visual Basic.NET Visual Basic.NET code. Paste INSIDE the Format event.
Copy CodeChartControl1.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US") C# code. Paste INSIDE the Format event.
Copy CodechartControl1.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
Related Sections
Customize, Localize and Deploy
Hide All
