D
Dan Kimhi
I am using the following code to open a CrystalReport object (cr) as a pdf
page :
Dim s As System.IO.MemoryStream =
cr.ExportToStream(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat)
With Response
.ClearContent()
.ClearHeaders()
.ContentType = "application/pdf"
.BinaryWrite(s.ToArray)
.End()
End With
The above opens in a separate frame. If, for example, I change the
..BinaryWrite to .Write("test"), it opens at the current frame. How could I
enforce the previous to always open in the current frame, and not open a new
window to show the .pdf stream.
Thank you for your help,
Dan Kimhi
page :
Dim s As System.IO.MemoryStream =
cr.ExportToStream(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat)
With Response
.ClearContent()
.ClearHeaders()
.ContentType = "application/pdf"
.BinaryWrite(s.ToArray)
.End()
End With
The above opens in a separate frame. If, for example, I change the
..BinaryWrite to .Write("test"), it opens at the current frame. How could I
enforce the previous to always open in the current frame, and not open a new
window to show the .pdf stream.
Thank you for your help,
Dan Kimhi