title: Generate PDF from RDLC report in winform
body: <p>How to programtically generate and save the PDF report from RDLC report?</p>
  
  <p>I did this in web application and it works using below statement:</p>
  
  <pre><code>      Dim fileContent As Byte() = viewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamIds, _
              warnings)
  </code></pre>
  
  <p>Can any one guide me best way to achieve this in winform.</p>
  
  <p>when use same approach then getting error <code>Defination of the report is invalid</code>.</p>
  
  <p><code>REport viewer version 10.0</code></p>