title: Crystal Report Viewer - Export to/open a PDF after entering parameters
body: <p>I have a report viewer in place, and i would like the report in question to be opened in a PDF after the user enters parameters and clicks the submit button (instead of the report being opened in the report viewer window.)</p>
  
  <p>I did some reading elsewhere and found this snippet</p>
  
  <pre><code>rptSP.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Report");
  </code></pre>
  
  <p>and i also found a posting where the following was recommended:</p>
  
  <blockquote>
    <p>Write code to export the report to pdf inside of the CrystalReportViewer_BeforeRenderObject event.</p>
  </blockquote>
  
  <p>but I haven't made it much past that.  Can anyone provide a code example, or link to one which shows this solution in place?</p>