none
initialize MS ReportViewer sandbox domain (localization) RRS feed

  • Question

  • Hello

    I've tried ReportViewer (VS2012) in 4.0 framework and found that it is not possible to initialize app domain where report is generated.

    I need to pass additional parameters to the report (for example, selected CultureInfo) to make report show localized labels. 

    Before 4.0 there was global static variable in the client application that was initialized with CultureInfo. In the report it was possible to call static method that return localized string for resourceID using ResourceManager. So each textbox have localization method call expression with resourceID and user got labels localized in selected language. And there was only one report definition file that simplifies development and support.

    Is there any best practices how to localize local report labels in 4.0 ? Or how to pass some intialization data to the report viewer sandbox domain? (without cas policy hack)

    Regards,

    alexey


    Regards

    Wednesday, May 15, 2013 7:51 AM