Problem opening a csv file through asp on ie8?
Posted
by user370010
on Stack Overflow
See other posts from Stack Overflow
or by user370010
Published on 2010-06-18T06:22:15Z
Indexed on
2010/06/18
6:23 UTC
Read the original article
Hit count: 193
Hi, From my asp application, i am trying to open a csv file onto ie8. The same code is working fine on ie6 although. Below is the code: Set objStream = Server.CreateObject("ADODB.Stream") objStream.Open objStream.Type = adTypeBinary objStream.LoadFromFile strFilePath
ContentType = "application/msexcel" Response.AddHeader "Content-Disposition", "attachment; filename=" & strFileName Response.AddHeader "Content-Length", strFileSize Response.Charset = "UTF-8" Response.ContentType = ContentType Response.BinaryWrite objStream.Read Response.Flush
objStream.Close
Please help me undestand where i am going wrong.
© Stack Overflow or respective owner