1
I have the bytes of a report in pdf but only found how to download.
byte[] bytes = Relatorio.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.ContentType = "PDF";
response.AddHeader("Content-Disposition", string.Format("attachment; filename={0}", "PDF"));
response.OutputStream.Write(bytes, 0, bytes.Length);
response.End();
I don’t want to download, I want it to be opened in a new tab the bytes.
Solved! thanks a lot.
– War Lock
target Blank opens a blank tab
– War Lock