ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Error: access to path is denied while exporting rdlc into pdfHi @Mujahid,<br />Please try the following<br /><br /><a href = 'link(Threads/185337/Solved-Export-ASPNet-Page-to-PDF-and-save-the-PDF-on-server-folder-disk-using-C-and-VBNet/)'>[Solved] Export ASP.Net Page to PDF and save the PDF on server folder (disk) using C# and VB.Net</a><br /><br />It might help you.<br /><br />Cheers Andrea., 23 Aug 2016 02:49:42 GMTError: access to path is denied while exporting rdlc into pdf<p>&nbsp;</p> <pre class="brush: csharp">ReportDataSource rds = new ReportDataSource(&#34;dsSlip&#34;, DAL.DAL.GetData(&#34;SELECT * FROM PAYSLIP&#34;)); // Variables 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 ReportViewer viewer = new ReportViewer(); viewer.ProcessingMode = ProcessingMode.Local; viewer.LocalReport.ReportPath = Server.MapPath(&#34;~/Reports/PaySlip.rdlc&#34;); viewer.LocalReport.DataSources.Add(rds); // Add datasource here byte[] bytes = viewer.LocalReport.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>Thats the code i am using not it is working but exporting to client</p>, 23 Aug 2016 02:51:25 GMTError: access to path is denied while exporting rdlc into pdf<p>Hello Andrea</p> <p>I have been to there it is exporting from Gridview to PDF &nbsp;I want from RDLC</p>, 23 Aug 2016 02:52:32 GMTError: access to path is denied while exporting rdlc into pdf<p>Refer:</p> <ol class="addToReplyList"> <li><input name="threadId" type="hidden" value="128571" /><a class="threadTitle" href="">why <span class="Highlight">access</span> to path is <span class="Highlight">denied</span> </a></li> <li><input name="threadId" type="hidden" value="130614" /><a class="threadTitle" href="">Directory.Move <span class="Highlight">Access</span> to the path is <span class="Highlight">denied</span> error in .Net </a></li> <li><input name="threadId" type="hidden" value="155756" /><a class="threadTitle" href="">FileUpload control raises uncatchable error - htmlfile: <span class="Highlight">Access</span> is <span class="Highlight">denied</span> </a></li> </ol>, 23 Aug 2016 08:53:44 GMT