SAP Knowledge Base Article - Public

2003581 - How to set the Localization for a Crystal Reports .NET application


Users would like to set the local language settings for use in a .NET application from the default locale.


  • Crystal Reports developer for Visual Studio
  • Visual Studio 2010/2012/2013


Create a Windows List box and label it lstCELocale.

Using this code in the form load you can get/set the locale:

Note: the Locale must be set before loading the report.

public frmMain()
    // Required for Windows Form Designer support

    Array valArray = Enum.GetValues(typeof(CrystalDecisions.ReportAppServer.CommonControls.CeLocale));
    foreach (object obj in valArray)

   // TODO: Add any constructor code after InitializeComponent call

You will see the ceLocalization ENUM's listed and can set the selected with this code:

CrystalDecisions.ReportAppServer.CommonControls.CeLocale myceLocale;

private void lstCeLocale_SelectedIndexChanged(object sender, EventArgs e)
    //this is the routine to set the default language locale for the report. Must be done before the report is loaded.
    CrystalDecisions.ReportAppServer.CommonControls.CeLocale myceLocale = (CrystalDecisions.ReportAppServer.CommonControls.CeLocale)lstCeLocale.SelectedItem;

        rpt.ReportClientDocument.LocaleID = (CrystalDecisions.ReportAppServer.DataDefModel.CeLocale)myceLocale;
    catch (Exception ex)
        MessageBox.Show("ERROR: " + ex.Message);

To change the CR Windows Form Viewer to match the locale selected use this line:


To see what the LCID values are refer to Microsoft's article for the values:

Or to automatically set the viewer to the same as the report you can use this:

int x = (int)rpt.ReportClientDocument.LocaleID;

NOTE: if you do not have the language installed the viewer will default to English ( or you local codepage - default language)



celocale, cr for vs, crforvs, Crystal Reports Developer for Visual Studio, localization , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem


SAP Crystal Reports, developer version for Microsoft Visual Studio ; SAP Crystal Reports, version for Visual Studio .NET 2008