Hi,
I'm using the following code in order export a report to PDF file. The problem is that even a small report with one page only is exported to a PDF file with a size of ~15 MB. How could that be? and how to handle this issue?
Please, I need your help,
Regards,
Bader
I'm using the following code in order export a report to PDF file. The problem is that even a small report with one page only is exported to a PDF file with a size of ~15 MB. How could that be? and how to handle this issue?
/Exports a report to a PDF document public static void ExportToPDF(Telerik.Reporting.Report reportToExport) { ReportProcessor reportProcessor = new ReportProcessor(); RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null); string fileName = result.DocumentName + ".pdf"; HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = result.MimeType; HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Private); HttpContext.Current.Response.Expires = -1; HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.AddHeader("Content-Disposition", string.Format("{0};FileName=\"{1}\"", "attachment", fileName)); HttpContext.Current.Response.BinaryWrite(result.DocumentBytes); HttpContext.Current.Response.End(); }Please, I need your help,
Regards,
Bader