在ie8上通过asp打开csv文件时出现问题?

在ie8上通过asp打开csv文件时出现问题?,csv,asp-classic,internet-explorer-8,ado,Csv,Asp Classic,Internet Explorer 8,Ado,在我的asp应用程序中,我试图在ie8上打开一个csv文件。但同样的代码在ie6上运行良好。代码如下: Set objStream = Server.CreateObject("ADODB.Stream") objStream.Open objStream.Type = adTypeBinary objStream.LoadFromFile strFilePath ContentType = "application/msexcel" Response.Add

在我的asp应用程序中,我试图在ie8上打开一个csv文件。但同样的代码在ie6上运行良好。代码如下:

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

请帮我弄清楚哪里出了问题。

这个问题现在已经解决了。文件大小设置为50,这在IE6上运行良好。在IE8上运行相同的代码会减少数据。我将这里的文件大小增加到800,并将所有数据都放到excel中。不确定IE6和IE8如何解释文件大小