3 Answers, 1 is accepted
Please check the response in your other forum thread on the same question.
If you need further help, let us continue the discussion in the above linked thread.
Regards,
Stef
Telerik by Progress

how can i write the below code in HTML5 Or JQuery or ReportController or ApiController
public FileContentResult GetPdf()
{
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
var typeReportSource = new Telerik.Reporting.TypeReportSource();
// reportToExport is the Assembly Qualified Name of the report
typeReportSource.TypeName = typeof(Report1).AssemblyQualifiedName;
var deviceInfo = new System.Collections.Hashtable();
deviceInfo["JavaScript"] = "this.print({bUI: true, bSilent: false, bShrinkToFit: true});";
var result = reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);
HttpContext.Response.AddHeader("content-disposition", "inline; filename=MyFile.pdf");
return File(result.DocumentBytes, "application/pdf");
}
please help me..
The Print a report directly at client-side without displaying it in a Viewer KB article contains MVC project illustrating an approach to export programmatically. There is no need to use the Reporting REST service (ReportsControllerBase) when you export programmatically.
In case the question is how to download the PDF via custom WebAPi controller, please check this stackoverflow discussion.
Regards,
Stef
Telerik by Progress