Hi,
I have encounter a new bug with my export pdf.
It was working in 2016 R2 SP1. I was in 2016 R3 when we discovert it first and upgrading to SP1 and SP2 didn't fix it.
So i have a function in code behind that process a predefined telerik report and send it via 'Response'.
protected void ExportButton(object sender, EventArgs e) { // [...] HiddenCode [...] ReportProcessor reportProcessor = new ReportProcessor(); Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource(); instanceReportSource.ReportDocument = rpt; RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null); string fileName = doc + "." + result.Extension; Response.Clear(); Response.ContentType = result.MimeType; Response.Cache.SetCacheability(HttpCacheability.Private); Response.Expires = -1; Response.Buffer = true; Response.AddHeader("Content-Disposition" , string.Format("{0};FileName=\"{1}\"" , "attachment" , fileName) ); Response.BinaryWrite(result.DocumentBytes); Response.End();}
If i have a RadButton outside of the grid calling this it works. When the button is in the CommandItemTemplate I get Nothing.
Or i get just some server lag.. sometimes a js unnamed error. and that on every Browser.