G
Guest
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_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintList.Clic
'Set up and fill the DataSe
Me.DsCalendar1.calMonthlyItems.Clear(
Me.daMonthlyItems.SelectCommand.Parameters("@tStartDate").Value = Me.Calendar1.VisibleDat
Me.daMonthlyItems.SelectCommand.Parameters("@tEndDate").Value = Me.Calendar1.VisibleDate.AddMonths(1).AddDays(-1
Me.daMonthlyItems.Fill(Me.DsCalendar1
'Populate and create the repor
Dim crReport As New EventLis
crReport.SetDataSource(DsCalendar1
'Convert the report to a PDF strea
Dim strStream As New System.IO.BinaryReader(crReport.ExportToStream(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat)
'Display the PDF content in the browser. Here's where I'd like the system to launch a new browser
Response.ClearContent(
Response.ClearHeaders(
Response.ContentType = "application/pdf
Response.BinaryWrite(strStream.ReadBytes(strStream.BaseStream.Length)
Response.Flush(
Response.Close(
End Su
Thanks
Here's the code I'm using to launch the report
Private Sub btnPrintList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintList.Clic
'Set up and fill the DataSe
Me.DsCalendar1.calMonthlyItems.Clear(
Me.daMonthlyItems.SelectCommand.Parameters("@tStartDate").Value = Me.Calendar1.VisibleDat
Me.daMonthlyItems.SelectCommand.Parameters("@tEndDate").Value = Me.Calendar1.VisibleDate.AddMonths(1).AddDays(-1
Me.daMonthlyItems.Fill(Me.DsCalendar1
'Populate and create the repor
Dim crReport As New EventLis
crReport.SetDataSource(DsCalendar1
'Convert the report to a PDF strea
Dim strStream As New System.IO.BinaryReader(crReport.ExportToStream(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat)
'Display the PDF content in the browser. Here's where I'd like the system to launch a new browser
Response.ClearContent(
Response.ClearHeaders(
Response.ContentType = "application/pdf
Response.BinaryWrite(strStream.ReadBytes(strStream.BaseStream.Length)
Response.Flush(
Response.Close(
End Su
Thanks