Visual Studio Developer Center >
Visual Studio Forums
>
Visual Studio Report Controls
>
Localization of local reports
Localization of local reports
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
- 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- Proposed As Answer byRajaSekhar-Navigator Wednesday, November 04, 2009 8:46 AM
- Marked As Answer byMichel Miranda Thursday, November 05, 2009 10:08 AM
- 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- Marked As Answer byMichel Miranda Thursday, November 05, 2009 10:08 AM
- Proposed As Answer byRajaSekhar-Navigator Thursday, November 05, 2009 4:08 AM
All Replies
- 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- Proposed As Answer byRajaSekhar-Navigator Wednesday, November 04, 2009 8:46 AM
- Marked As Answer byMichel Miranda Thursday, November 05, 2009 10:08 AM
- 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 - 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- Marked As Answer byMichel Miranda Thursday, November 05, 2009 10:08 AM
- Proposed As Answer byRajaSekhar-Navigator Thursday, November 05, 2009 4:08 AM
- 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


