locked
Localizing Report Viewer RRS feed

  • Question

  • User-1561814533 posted

    In a web forms project I wish to display the ReportViewer control based on a user's preferred language, so the tags in the header (for example the 'Export' tag) are displayed in the user's preferred langauge.

    I have tried setting the thread culture in the Page_Load event but this does not work, here is an example of what I tried:

    Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-FR");
    Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("fr-FR");

    Could you explain how I might achieve the desired result?


    Monday, July 12, 2010 4:39 AM

Answers

  • User-1561814533 posted

    Found the answer myself. Simply created a class that implemented IReportViewerMessages, registered it in web.config, and added code in the class to display the appropriate text.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 12, 2010 9:41 AM