or
public class MyReportBook : ReportBook{ public MyReportBook() { this.Reports.Add(new CoverPage()); this.Reports.Add(new DetailPage()); this.Reports.Add(new SummaryPage()); this.Reports.Add(new MonthlyBreakoutPage()); }}Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor() Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("XLS", myReport, Nothing) Dim fileName As String = result.DocumentName + ".xls" Response.Clear() Response.ContentType = "Application/XLS" Response.Cache.SetCacheability(HttpCacheability.Private) Response.Expires = -1 Response.Buffer = False Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName)) Response.OutputStream.Write(result.DocumentBytes, 0, result.DocumentBytes.Length) Response.End() @(Html.TelerikReporting().ReportViewer() .Id("reportViewer1") .ServiceUrl("/api/reports/") .TemplateUrl("/Content/ReportViewer/templates/telerikReportViewerTemplate-8.1.14.804.html") .ReportSource(new UriReportSource() { Uri = @Model.ReportSource }) .ViewMode(ViewModes.INTERACTIVE) .ScaleMode(ScaleModes.SPECIFIC) .Scale(1.0) .PersistSession(false))