Articles in this section
Category / Section

Create a Multilingual Report with Dynamic Language Switching

Published:
Updated:

In Bold Reports, you can create multilingual reports that allow users to dynamically switch between languages at runtime using report parameters and expressions. This feature enhances accessibility and usability for global audiences by displaying text labels, headers, and other report elements in the user’s preferred language.

This guide explains how to configure a multilingual report with dynamic language switching in Bold Reports.

Steps to Create a Multilingual Report with Dynamic Language Switching

1. Create a Parameter for Language Selection
  • Add a parameter named Language to your report.
  • Set the Available values to include supported language codes (for example, en for English and ar for Arabic).
    image.png
2. Dynamically Bind Fields Based on Language
  • Use an expression to display the appropriate field based on the selected language:
    image.png
    =IIf(Parameters!Language.Value = "ar", Fields!City_AR.Value, Fields!City_EN.Value)
    

This expression checks the Language parameter and displays City_AR for Arabic or City_EN for English.
Apply similar expressions to other multilingual fields (such as headers and labels) as required.

3. Set Layout Direction (RTL or LTR)
  • Adjust the layout direction dynamically to match the writing system of the selected language.
  • Use an expression to set the Direction property of text boxes or the entire report:
    image.png

    =IIf(Parameters!Language.Value = “ar”, “RTL”, “LTR”)

This ensures that Arabic text is displayed correctly using right-to-left (RTL) alignment.

4. Save and preview
  • Save your report and preview it using different language selections.
  • Confirm that the correct fields and layout direction are applied for each language.
    In English
    image.png

    In Arabic
    image.png

    You can download the above sample report from here.
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied