ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Export SSRS Report to PDF without using ReportViewer in ASP.Net<p>This is the solution i came up with :</p> <pre class="brush: csharp"> public void ExportToPDF(string path, List&lt;ReportParameter&gt; reportParams,string fileName) { Warning[] warnings; string[] streamIds; string mimeType = string.Empty; string encoding = string.Empty; string extension = string.Empty; // Setup the report viewer object and get the array of bytes var viewer = new ReportViewer(); viewer.ProcessingMode = ProcessingMode.Remote; viewer.ServerReport.ReportServerUrl = new Uri(&#34;http://localhost/ReportServer&#34;); viewer.ServerReport.ReportPath = &#34;/&#34;+path; viewer.ServerReport.SetParameters(reportParams); byte[] bytes = viewer.ServerReport.Render(&#34;PDF&#34;, null, out mimeType, out encoding, out extension, out streamIds, out warnings); // Now that you have all the bytes representing the PDF report, buffer it and send it to the client. Response.Buffer = true; Response.Clear(); Response.ContentType = mimeType; Response.AddHeader(&#34;content-disposition&#34;, &#34;attachment; filename=&#34;+fileName+&#34;.&#34; + extension); Response.BinaryWrite(bytes); // create the file Response.Flush(); // send it to the client to download }</pre> <p>&nbsp;</p>, 03 Jun 2015 08:09:22 GMT