HOWTO: Localization and Reports

What do I have to do get the date and time as displayed on the reports to use the culture setting of the ASP.NET thread culture. I have tried changing the regional settings on the box with no luck. We are trying to localize our reports to swedish, portuguese. I am having a hard time understanding the tweaks that has to be done to get this working.

All the asp.net controls understand the culture, whats up with the reportviewer control. Why is it not using the ASP.NET current thread culture BTW, the language property of the reports seems to have no impact either.

Appreciate if MS can direct us to some sample code and reports.

Thanks



Answer this question

HOWTO: Localization and Reports

  • skyma

    To use the user language (the thread culture), set the report language to "=User!Language". The language can be set differently on individual report items to override the report language, so you will want to make sure they are not explicitly specified.
  • BioSlayer

    The report viewer can be localized. Several language packs are available for download at http://www.microsoft.com/downloads/details.aspx FamilyID=e3d3071b-d919-4ff9-9696-c11d312a36a0&displaylang=en

    Additionally, if you want the report viewer localized to another language, you can implement IReportViewerMessages and supply your own translations.


  • HowardRichards

    Brian

    Thank you for your reply. I basically wrote some code to load the rdlc into an xmldom and add or update the language element in the file. It seems to be working ok so far.

    It would be nice to set the report language from the code

    Can the reportviewer be localized too If yes,let me know if it can be done through code without changing the culture settings in the config file.

    Thanks


  • HOWTO: Localization and Reports