P
poussy-puce
Hi, I would like to choose destination path when user download file on
her computer...
I have code for the download, but I don't find code or component for
change the destination on the Save in box...
In VB 6.0 it have a component for this, the name of this component is
'Common Dialog Control'
The code for my download:
Set objFile = objFSO.GetFile(strFileName)
Response.Clear()
Response.AddHeader "Content-Disposition", "attachment; filename=" &
objFile.Name
Response.AddHeader "Content-Length", objFile.Size
Response.ContentType = "application/octet-stream"
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = 1
Response.CharSet = "UTF-8"
objStream.LoadFromFile(strFileName)
Response.BinaryWrite(objStream.Read)
objStream.Close
Set objStream = Nothing
Set objFile = Nothing
Thank you for your help, and scuse my very bad english!
her computer...
I have code for the download, but I don't find code or component for
change the destination on the Save in box...
In VB 6.0 it have a component for this, the name of this component is
'Common Dialog Control'
The code for my download:
Set objFile = objFSO.GetFile(strFileName)
Response.Clear()
Response.AddHeader "Content-Disposition", "attachment; filename=" &
objFile.Name
Response.AddHeader "Content-Length", objFile.Size
Response.ContentType = "application/octet-stream"
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = 1
Response.CharSet = "UTF-8"
objStream.LoadFromFile(strFileName)
Response.BinaryWrite(objStream.Read)
objStream.Close
Set objStream = Nothing
Set objFile = Nothing
Thank you for your help, and scuse my very bad english!