I am new to Telerik, please excuse me if I'm asking anything obvious.
I am trying to test if localization is working for PDF exported programatically from Telerik Report template created through Visual Studio Report Designer. I set browser's language to Marathi (culture code - mr). Below is my code through which PDF is exported.
public ActionResult DownloadSamplePDFReport ()
Telerik.Reporting.Processing.ReportProcessor reportProcessor =
System.Collections.Hashtable deviceInfo =
Telerik.Reporting.TypeReportSource typeReportSource =
typeReportSource.TypeName = typeof(SampleReport).AssemblyQualifiedName;
Telerik.Reporting.Processing.RenderingResult result =
reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);
byte fileBytes = result.DocumentBytes;
string fileName = "Output.pdf";
return File(fileBytes, MediaTypeNames.Application.Octet, fileName);
I have created resource file named SampleReport.mr.resx which contains localized strings for Marathi language. Still output PDF contains default strings instead of localized one. Please help me resolved this issue.