Render Report in different language than Thread culture?

1 Answer 5 Views
Report Viewer - MVC
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Stefan asked on 06 Aug 2025, 08:21 AM
We have an ASP.NET MVC application where the language and culture can be changed by setting the thread's CurrentUICulture and CurrentCulture in Global.asax.

We now have a requirement to render reports in a different language than the one currently used by the application.

Is there a way to achieve this? We are using both the ReportViewer and the ReportProcessor (for printing and PDF rendering).

1 Answer, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
answered on 08 Aug 2025, 10:00 AM

We solved this now, by incorporating this: Pass Culture from the Report Viewer to the REST Service - Telerik Reporting

Snippet:
        .ClientEvents(e => { e.RenderingBegin("renderingBegin"); })
)

</body>
</html>

<script>    
    function renderingBegin(e, d) {        
        const culture = "@ViewBag.ReportLanguage";
        d.deviceInfo["CurrentCulture"] = culture;
        d.deviceInfo["CurrentUICulture"] = culture;
    }
</script>

Tags
Report Viewer - MVC
Asked by
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or