title: Generate Report of Crystal in PDF...How open in new tab or page?
body: <p>I did a code to generate a report of Crystal Reports in PDF...But it opens in the same page of the user did a search and clicked in the button...Have any ways to open the PDF in a new tab or page ?</p>
  
  <p>My code is:</p>
  
  <pre><code>private void OpenPDF()
  {
      ReportDocument Rel = new ReportDocument();
      Rel.Load(Server.MapPath("../Reports/Test.rpt"));
      BinaryReader stream = new BinaryReader(Rel.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat));
      Response.ClearContent();
      Response.ClearHeaders();
      Response.ContentType = "application/pdf";
      Response.BinaryWrite(stream.ReadBytes(Convert.ToInt32(stream.BaseStream.Length)));
      Response.Flush();
      Response.Close(); 
  }
  </code></pre>
  
  <p>Thanks for the help!</p>