Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
4 Points
2 Posts
Nov 01, 2007 09:47 AM|LINK
objReport.SetDataSource(dt)
.ClearContent()
.ContentType =
.BinaryWrite(s1.ToArray)
.Flush()
.Close()
try this code for the your problem it'll really helps you
chirag_madi
Member
4 Points
2 Posts
Re: Problem Streaming PDF File to IE Browsers
Nov 01, 2007 09:47 AM|LINK
objReport.SetDataSource(dt)
Dim s1 As System.IO.MemoryStream = objReport.ExportToStream(ExportFormatType.PortableDocFormat)With HttpContext.Current.Response.ClearContent()
.ContentType =
"application/pdf" .AddHeader("Content-Disposition", "inline; filename=Report.pdf").BinaryWrite(s1.ToArray)
.Flush()
.Close()
End Withtry this code for the your problem it'll really helps you