title: how can i open pdf generated by report viewer in new tab?
body: <p><strong>I did a code to create PDF and download it</strong> </p>
  
  <pre><code> protected void create_pdf_Click(object sender, EventArgs e)
  {
      Warning[] warnings;
      string[] streamIds;
      string mimeType = string.Empty;
      string encoding = string.Empty;
      string extension = string.Empty;
      string devinfo = "&lt;DeviceInfo&gt;&lt;ColorDepth&gt;32&lt;/ColorDepth&gt;&lt;DpiX&gt;350&lt;/DpiX&gt;&lt;DpiY&gt;350&lt;/DpiY&gt;&lt;OutputFormat&gt;PDF&lt;/OutputFormat&gt;" +
             "  &lt;PageWidth&gt;8.5in&lt;/PageWidth&gt;" +
              "  &lt;PageHeight&gt;11in&lt;/PageHeight&gt;" +
              "  &lt;MarginTop&gt;0.5in&lt;/MarginTop&gt;" +
              "  &lt;MarginLeft&gt;0.5in&lt;/MarginLeft&gt;" +
               "  &lt;MarginRight&gt;0in&lt;/MarginRight&gt;" +
               "  &lt;MarginBottom&gt;0in&lt;/MarginBottom&gt;" +
             "&lt;/DeviceInfo&gt;";
  
      // Setup the report viewer object and get the array of bytes
      ReportViewer viewer = new ReportViewer();
      viewer.ProcessingMode = ProcessingMode.Local;
      viewer.LocalReport.ReportPath = Server.MapPath("~/Installments_Report.rdlc");
      DataView dv = new DataView();
      DataTable dt = new DataTable();
      dv = (System.Data.DataView)SqlDataSource1.Select(System.Web.UI.DataSourceSelectArguments.Empty);
      dt = dv.ToTable();
      viewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt));
  
      byte[] bytes = viewer.LocalReport.Render("PDF", devinfo, 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("content-disposition", "attachment; filename=" + "Installments" + "List" + "." + extension);
      Response.BinaryWrite(bytes); // create the file
      Response.Flush(); // send it to the client to download
  }
  </code></pre>
  
  <p><strong>Have any ways to open this PDF in a new tab or page ?</strong></p>
  
  <p><em>that's because i need to have button to direct print the report</em></p>
  
  <p>the suggestion that to open the pdf in new tap then user can print it</p>
  
  <p>any other suggestion !!?</p>
  
  <p>Thanks for the help!*</p>