In order to localize ReportViewer interface it is necessary to complete the following steps:

  1. Create an .xml file that will contain all localization strings (probably, by translating the existing files). File structure is shown below:
<?xml version="1.0" encoding="utf-8" ?>
<dictionary>
  <entry key="Progress.PageLoading">Page is loading...</entry>
    
</dictionary>

Localization files can be found in the folder Localization\WinRT

If it is necessary to localize just some strings, it is possible to specify only necessary keys in the xml files. The rest of strings will use default values.

  1. Then it is necessary to add localization file to the application that uses ReportViewer:

     2. To make ReportViewer use localization file it is necessary to add the following code:

public MainPage()
        {
            this.InitializeComponent();
            XmlReader reader = XmlReader.Create(@"Localization/ru.xml");
            LocalizationManager.RegisterLocalizationProvider(new
 XMLLocalizationProvider(reader));
            Loaded += reportViewer_Loaded;
            SubscribeSharing();
        }

 

After all the steps are completed, ReportViewer will use new localization strings:





 

Add Feedback