How do I localize a .rdlx report?

Posted by: chris.eaton on 18 April 2024, 4:17 am EST

    • Post Options:
    • Link

    Posted 18 April 2024, 4:17 am EST

    Hi. I’m trying to localize an rdlx report to French. This looks like it should be as simple as setting the language property on the report to French (Canada), changing the text, and then running it with the thread’s culture/UI culture set to French (Canada). That works great at design time. At run time I just get the default text no matter what.

    Is there a step I’m missing? The documentation for AR 18 seems to be entirely devoid on how to do this (the localization topic is about localizing AR itself, but doesn’t talk about reports), but older versions had documentation on the subject and suggest this should work: https://help.grapecity.com/activereports/webhelp/AR13/webframe.html#LocalizeActiveReportClassesTextBoxesandChartControls.html

    Thanks.

  • Posted 18 April 2024, 10:55 pm EST

    Hi Chris,

    Please refer to the attached sample application you can add your custom resources in a DataSource to localize the reports. To find the resources in the Datasource you may use the Lookup Function something like:

    =Lookup("My English String",Fields.Item("English Column Name").Value,Fields.Item("French Column Name").Value,"DataSet Name")
    

    For more information, on the Lookup function, please refer to the following pages of our documentation: Lookup function

    Please refer to the attached sample application.

    In the attached sample, I have a report with a LCID report parameter. This parameter inputs culture value and is used to fetch value from Resource DataSet. This value is also used to set Report Global Language i.e. Report.Language property.

    I hope it helps!ActiveReports_LocalizedReport.zip

  • Posted 18 April 2024, 11:48 pm EST

    I see. So you can’t set the Language property in the editor and then edit the Textbox values that way? That does work at design time but not at runtime.

    This looks like it should do what I need instead, so I’ll give it a try. Thanks.

  • Posted 21 April 2024, 5:13 pm EST

    Hi Chris,

    The Report or Control Language property can only be used for formatting the data value only.

    Feel free to get back to us if you face any issues in the previously mentioned approach.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels