D
Dan Kimhi
I'm using the following lines to output a Crystal Report object to a
webForm:
Dim s As System.IO.MemoryStream =
cr.ExportToStream(CrystalDecisions.Shared].ExportFormatType.PortableDocFormat)
With Response
.Buffer = True
.ClearContent()
.ClearHeaders()
.ContentType = "application/pdf"
.BinaryWrite(s.ToArray)
.End()
End With
The report is opened in a new window; however, if I replace
..BinaryWrite(s.ToArray) by let's say .Write("hello"), I get it to output
in the same window.
How could I force the report (pdf format) to open in the same window?
Thanks for your help.
Dan Kimhi
webForm:
Dim s As System.IO.MemoryStream =
cr.ExportToStream(CrystalDecisions.Shared].ExportFormatType.PortableDocFormat)
With Response
.Buffer = True
.ClearContent()
.ClearHeaders()
.ContentType = "application/pdf"
.BinaryWrite(s.ToArray)
.End()
End With
The report is opened in a new window; however, if I replace
..BinaryWrite(s.ToArray) by let's say .Write("hello"), I get it to output
in the same window.
How could I force the report (pdf format) to open in the same window?
Thanks for your help.
Dan Kimhi