Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. private sub DownloadFile(file, folio, tipo)
  2. Set GetConnection = CreateObject("Microsoft.XMLHTTP")
  3. GetConnection.Open "get", file, False
  4. GetConnection.Send
  5. ResponsePage = GetConnection.responseText
  6. Response.addHeader "content-disposition", "attachment; filename=" & "nombreArchivo"
  7. Response.ContentType = "application/octet-stream"
  8. Response.Write ResponsePage
  9. Response.Flush()
  10. Response.End()
  11. Set GetConnection = Nothing
  12. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement