Hello,
I need to open pdf document inline and at the same time show print dialoghere is my code that open the document on new page:
HttpContext.Current.Response.Buffer = False
HttpContext.Current.Response.ContentType = "application/" & ext
HttpContext.Current.Response.AddHeader("content-disposition", "inline; filename=""" & FileName & """")
HttpContext.Current.Response.AddHeader("content-length", mMemoryStream.Length)
mMemoryStream.Position = 0
Dim Buffer(1024) As Byte
Dim byteCount As Integer
Do
byteCount = mMemoryStream.Read(Buffer, 0, Buffer.Length)
Try
HttpContext.Current.Response.OutputStream.Write(Buffer, 0, byteCount)
'HttpContext.Current.Response.Flush()
Catch ex As HttpException
If HttpContext.Current.Response.IsClientConnected Then Throw
HttpContext.Current.Response.End()
End Try
Loop While (byteCount > 0)
HttpContext.Current.Response.End()
is showing the print dialog doable?? if so please let me know how