how to save crystal report that converted to pdf in asp .net
<p>I wrote code that converts my crystal report to pdf, but it can't store the pdf file automatically to my project. </p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    CrystalReportViewer1.ReportSource = getReportDocument();
    CrystalReportViewer1.DataBind();
    // Get the report document
    ReportDocument repDoc = getReportDocument();
    // Stop buffering the response
    Response.Buffer = false;
    // Clear the response content and headers
    Response.ClearContent();
    Response.ClearHeaders();
    try
    {
        // Export the Report to Response stream in PDF format and file name Customers
        repDoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "TFA");

        // There are other format options available such as Word, Excel, CVS, and HTML in the ExportFormatType Enum given by crystal reports
    }
    catch (Exception ex)
    {
        Console.WriteLine(ex.Message);
        ex = null;
    }
}

private ReportDocument getReportDocument()
{
  // File Path for Crystal Report
  string repFilePath = Server.MapPath("~/CrystalReport1.rpt");
  // Declare a new Crystal Report Document object
  // and the report file into the report document
  ReportDocument repDoc = new ReportDocument();

  repDoc.Load(repFilePath);

  // Set the datasource by getting the dataset from business
  // layer and
 // In our case business layer is getCustomerData function
 return repDoc;
}
</code></pre>
