cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports 9 .Net Localization for Portuguese language

Former Member
0 Kudos

Hello,

I have an application that uses the report viewer (Crystal Reports v9.1 .NET).

I need to translate the report viewer's user interface from English to Portuguese language but i can't find these Runtime DLLs or merge modules for this version.

Is it still available? Where can i download it?

Best Regards,

Jorge

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hi Jorge

CR 9.1 being so far back (13+)  years(?)), I don't remember much. Going by this though:

Working with Default and Custom Language Resource Files

which is for CR 10.2, I suspect CR 9.1 did not have Portuguese support. E.g.; CR 10.2 which is two versions newer that v. 9.1 did not have Portuguese support.

I think updating to SAP Crystal Reports, Developer Version for Visual Studio .NET (2010 / 2012 / 2013) will be your best bet.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

0 Kudos

Hi Jorge,

Once you upgrade here is some code to get/set the locale for CR to use. Note, you do have to set the Locale before opening the report:

public frmMain()

{

    //

    // Required for Windows Form Designer support

    //

    InitializeComponent();

    if (System.Globalization.RegionInfo.CurrentRegion.IsMetric)

        isMetric = 567;

    else

        isMetric = 1440;

    Array valArray = Enum.GetValues(typeof(CrystalDecisions.ReportAppServer.CommonControls.CeLocale));

    foreach (object obj in valArray)

    {

        lstCeLocale.Items.Add(obj);

    }

    Array valArray1 = Enum.GetValues(typeof(CrReportExportFormatEnum));

    foreach (object obj in valArray1)

    {

        lstExportFormatType.Items.Add(obj);

    }

    foreach (Assembly MyVerison in AppDomain.CurrentDomain.GetAssemblies())

    {

        if (MyVerison.FullName.Substring(0, 38) == "CrystalDecisions.CrystalReports.Engine")

        {

            //File:             C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll

            //InternalName:     Crystal Reports

            //OriginalFilename:

            //FileVersion:      13.0.9.1312

            //FileDescription:  Crystal Reports

            //Product:          SBOP Crystal Reports

            //ProductVersion:   13.0.9.1312

            //Debug:            False

            //Patched:          False

            //PreRelease:       False

            //PrivateBuild:     False

            //SpecialBuild:     False

            //Language:         English (United States)

            System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location);

            txtRuntimeVersion.Text += fileVersionInfo.FileVersion.ToString();

            // check if CrsytalDecisions.Enterprise dll's can be loaded ( Anything but CR for VS - managed reporting )

            if (fileVersionInfo.FileVersion.Substring(0, 2) == "13")

            {

                btnRasOpen.Enabled = false;

            }

            CRVer = fileVersionInfo.FileVersion.Substring(0, 2);

            return;

        }

    }

    //VB code

    //Imports CrystalDecisions.CrystalReports.Engine

    //Imports CrystalDecisions.Shared

    //Imports System.Reflection

    //Imports System.Runtime.InteropServices

    //Public Class Form1

    //    Private Sub CrystalReportViewer1_Load(sender As Object, e As EventArgs) Handles CrystalReportViewer1.Load

    //        For Each MyVerison As Assembly In AppDomain.CurrentDomain.GetAssemblies()

    //            If MyVerison.FullName.Substring(0, 38) = "CrystalDecisions.CrystalReports.Engine" Then

    //                'File:             C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine \13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll

    //                'InternalName:     Crystal Reports

    //                'OriginalFilename:

    //                'FileVersion:      13.0.9.1312

    //                'FileDescription:  Crystal Reports

    //                'Product:          SBOP Crystal Reports

    //                'ProductVersion:   13.0.9.1312

    //                'Debug:            False

    //                'Patched:          False

    //                'PreRelease:       False

    //                'PrivateBuild:     False

    //                'SpecialBuild:     False

    //                'Language:         English (United States)

    //                Dim fileVersionInfo As System.Diagnostics.FileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location)

    //                MessageBox.Show(fileVersionInfo.FileVersion.ToString())

    //                Return

    //            End If

    //        Next

    //        Dim Report As New CrystalDecisions.CrystalReports.Engine.ReportDocument

    //        Report.Load("C:\reports\formulas.rpt")

    //        CrystalReportViewer1.ReportSource = Report

    //    End Sub

    //End Class

    //

    // TODO: Add any constructor code after InitializeComponent call

    //

}

CrystalDecisions.ReportAppServer.CommonControls.CeLocale myceLocale;

This is what it shows, you can add code to change the names etc:

// this gets the locale when set before the report was opened and sets the viewer to the same language

if (chkSameAsCELocale.Checked)

{

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

    crystalReportViewer1.SetProductLocale(x);

}

Thanks

Don

0 Kudos

FYI, Portuguese language was not supported in CR 9.... It is in CR for VS.

Don

Answers (0)