Private Sub ConvertPdf() ' Dim oStream As New System.IO.MemoryStream ' oStream = objRpt.ExportToStream(ExportFormatType.PortableDocFormat) ' Response.ClearContent() ' Response.Buffer = True ' Response.AddHeader("Content-Disposition", "attachment;filename=PBBFile.pdf") ' Response.ContentType = "application/pdf" ' 'Response.ContentType = "window.open('newpage.aspx', 'application/pdf')" ' Response.BinaryWrite(oStream.ToArray()) ' Response.End() ' 'Dim sScript As String = "window.open('newpage.aspx', '_blank')" ' 'ClientScript.RegisterStartupScript(sScript.GetType(), "MyOpener", sScript, True) 'End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)