Hello All,
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 =
new Telerik.Reporting.Processing.ReportProcessor();
System.Collections.Hashtable deviceInfo =
new System.Collections.Hashtable();
Telerik.Reporting.TypeReportSource typeReportSource =
new Telerik.Reporting.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.
Thanks,
Tejas Sutar