SAP Knowledge Base Article - Public

1711136 - How to set Culture per report using the Crystal Reports SDK for VS .NET

Symptom

  • Visual Studio .NET application using the Crystal Reports SDK for .NET
  • Requirement that report #1 be localized as EN, report #2 as FR, report #3 as DE and so on

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Resolution

  • Use the code below before loading each report
  • Only numbers, dates and messages will be localized
  • Data and strings will not be localized - See KB #1525014 - "Sample C# .NET UFL and Localization Formula function" for more information
var newCulture = CultureInfo.CreateSpecificCulture("de"); 
    Thread.CurrentThread.CurrentUICulture = newCulture;
    Thread.CurrentThread.CurrentCulture = newCulture;

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 localization, international language , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio