or
I know the report being displayed contains a lot of data. Is there any way to set the viewer to have additional properties to allow it to process longer? Is it actually making an additonal postback or AJAX call to the server after the initial postback to generate the actual report or is that done on the client? Are there other settings we can use to speed up rendering if there is a lot of data being returned?
Thanks.
txtTitle.Style.Color = System.Drawing.Color.FromArgb(154, 51, 102)
txtTitle.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(18)
txtTitle.Style.Font.Bold = True
| void ExportToPDF(Telerik.Reporting.Report reportToExport) |
| { |
| ReportProcessor reportProcessor = new ReportProcessor(); |
| RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null); |
| string fileName = result.DocumentName + ".pdf"; |
| 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(); |
| } |