I have several web apps that I want to redirect to a new page, but have that page open in a new browser window. The basic scenario is that I have a CrystalReport object that gets created and displayed on-screen as a .PDF stream. I need to have this page launch in it's own window leaving the first browser alone
Here's the code I'm using to launch the report
Private Sub btnPrintList_Cl ick(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnPrintList.Cl ic
'Set up and fill the DataSe
Me.DsCalendar1. calMonthlyItems .Clear(
Me.daMonthlyIte ms.SelectComman d.Parameters("@ tStartDate").Va lue = Me.Calendar1.Vi sibleDat
Me.daMonthlyIte ms.SelectComman d.Parameters("@ tEndDate").Valu e = Me.Calendar1.Vi sibleDate.AddMo nths(1).AddDays (-1
Me.daMonthlyIte ms.Fill(Me.DsCa lendar1
'Populate and create the repor
Dim crReport As New EventLis
crReport.SetDat aSource(DsCalen dar1
'Convert the report to a PDF strea
Dim strStream As New System.IO.Binar yReader(crRepor t.ExportToStrea m(CrystalDecisi ons.[Shared].ExportFormatTy pe.PortableDocF ormat)
'Display the PDF content in the browser. Here's where I'd like the system to launch a new browser
Response.ClearC ontent(
Response.ClearH eaders(
Response.Conten tType = "applicatio n/pdf
Response.Binary Write(strStream .ReadBytes(strS tream.BaseStrea m.Length)
Response.Flush(
Response.Close(
End Su
Thanks