Localizing report in ASP.net web application

4 posts, 0 answers
  1. daniel
    daniel avatar
    1 posts
    Member since:
    Oct 2015

    Posted 19 Oct 2015 Link to this post

    Hi,

     I have created a TRDX report files using Telerik stand alone report designer. I created an asp.net web application and calling the TRDX report in the browser using telerik report viewer control. Below is the code used in the page load to call trdx report.

      var reportSource = new UriReportSource() { Uri = "EVB_002.trdx" };
    this.ReportViewer1.ReportSource = reportSource;

     We need to implement support for different languages in these reports, example when user wants to see report headers in French, there must be an option for user to select the language. I have gone through following 2 links given in telerik documentation and created a resource file(.resx). 

    http://www.telerik.com/help/reporting/report-viewer-localization.html
    http://www.telerik.com/help/reporting/advanced-localizing-reports.html

    Please let me know the next steps to associate the resource files with telerik report viewer so that reports can be viewed in other languages.

    Thanks,

    Daniel

  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 21 Oct 2015 Link to this post

    Hello Daniel,

    Reports produced by the Standalone Report Designer tool are in XML format and do not support localization with RESX files - Localizing Reports.

    Localization can be done by adding a report parameter which will provide information about the culture in the report. Then for each item in the report you will have to use a user function obtaining the correct localized string based on the report parameter value, and a second argument pointing the key of the resource.

    To extend the Standalone Designer to use an external assembly with user functions, please check Extending Report Designer and the tutorials at the bottom of the article. The web application must be extended to load the external assembly in a similar way (the settings are listed in Previewing a report definition that uses an external assembly).


    I hope this information is helpful.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Karthic
    Karthic avatar
    2 posts
    Member since:
    May 2014
  4. Neli
    Admin
    Neli avatar
    190 posts

    Posted 17 Oct Link to this post

    Hello Karthic,

    Since version R1 2019 (13.0.19.116), we provide an option to localize TRDP reports with Standalone Report Designer. For more information, refer to Localizing Reports article.

    Regards,
    Neli
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top