or
Private Sub pageFooter_ItemDataBound(sender As Object, e As EventArgs) Handles pageFooter.ItemDataBound Dim processingPageFooter = TryCast(sender, Telerik.Reporting.Processing.PageSection) Dim processingPageExecTextBox = TryCast(processingPageFooter.ChildElements.Find("txtSayfaToplami", True)(0), Telerik.Reporting.Processing.TextBox) runningPageValue += Convert.ToDouble(processingPageExecTextBox.Value) Dim processingRunningPageExecTextBox = TryCast(processingPageFooter.ChildElements.Find("TextBox3", True)(0), Telerik.Reporting.Processing.TextBox) processingRunningPageExecTextBox.Value = runningPageValueEnd SubrunningPageValue=0 var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor(); Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("xlsx", reportToExport, null); string fileName = reportName + ".xlsx"; Response.Clear(); Response.Charset = ""; Response.ContentType = "application/vnd.xlsx"; 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();