Guest User

Untitled

a guest
Apr 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. doc.Close();
  2. Response.BinaryWrite(MemStream.GetBuffer());
  3. Response.End();
  4. MemStream.Close();
  5.  
  6. Response.AddHeader("Content-Disposition", "attachment; filename=Whatever.pdf")
  7.  
  8. Using ms As New IO.MemoryStream
  9. ...
  10. Response.End()
  11. End Using
Add Comment
Please, Sign In to add comment