Ask a questionAsk a question
 

AnswerLocalization of local reports

  • Wednesday, November 04, 2009 6:13 AMMichel Miranda Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Does the local reportviewer in asp.net supports localization? I need to display reports in different languages based on resource files (resx).
    Thanks in advance.

Answers

  • Wednesday, November 04, 2009 8:45 AMRajaSekhar-Navigator Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Michel Miranda

    Yes you can. In RDLC Report properties there is one property called "languages".By default it will be "United States (English)", you can defined you own language based on expression option under language.

    Hope this will help you

    -Raja Sekhar K
  • Thursday, November 05, 2009 4:08 AMRajaSekhar-Navigator Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    HI Michel Miranda,

    Yes it is possible, as i said, use the expression in the language property,
    u can pass those text strings as parameters to report and assign those parameters to language property expression


    -Raja Sekhar K

All Replies

  • Wednesday, November 04, 2009 8:45 AMRajaSekhar-Navigator Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Michel Miranda

    Yes you can. In RDLC Report properties there is one property called "languages".By default it will be "United States (English)", you can defined you own language based on expression option under language.

    Hope this will help you

    -Raja Sekhar K
  • Wednesday, November 04, 2009 11:55 AMMichel Miranda Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Raja Sekhar K,

    Thanks for the response. Still not getting it.

    Can I use the same RDLC file for different languages?
    Do I have to set the Languages property at runtime?

    I have a ResourceManager class generated from resx files containing my text strings in different languages.
    How do I reference the ResourceManager class in my report?

    Thanks
    Michel Miranda
  • Thursday, November 05, 2009 4:08 AMRajaSekhar-Navigator Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    HI Michel Miranda,

    Yes it is possible, as i said, use the expression in the language property,
    u can pass those text strings as parameters to report and assign those parameters to language property expression


    -Raja Sekhar K
  • Thursday, November 05, 2009 10:08 AMMichel Miranda Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks again for the response. I realy appreciate it.

    After your answers and surfing on the web my current knowledge is that the reportviewer doesn't support different languages very well.
    I have to retrieve each translated text from the resource files and pass it to the report as a report parameter.
    OK, I will give it a try.

    Michel