为何仍然提示下载 word 文档的提示?
为何加了 response.ContentType="application/msword" 仍然有直接打开或保存的提示。我希望直接在 ie 中打开,而不用提示。可以解决吗,特急急!!!!!!
response.ContentType="application/msword"
Const adTypeBinary = 1
Dim strFilePath
strFilePath = server.MapPath(a.doc)
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
Response.BinaryWrite(objStream.Read)
objStream.Close
Set objStream = Nothing
response.Flush()
Response.End