Internet Explorer 8 Response binarywrite RRS feed

  • Discussion générale

  • Hello.

    I have a problem with IE8.

    In my web application, i have a page where an user can download an excel file.

    It works fine with Firefox, but not with IE8... In fact the a page opens and closes as if there was a safety lock.

    I tried to change the compatibility IE8-IE7 but nothing.

    I remember it worked also with IE7.

    The excel file is generated with the webservice Reporting services.

    Here is the code:

                    Dim ResultStream As Byte() 'Obtained with reporting services

                    Response.Buffer = True
                    Response.Expires = 0
                    Response.ContentType = "application/"
                    Response.AddHeader("Content-Length", ResultStream.Length)
                    Response.AddHeader("Content-Disposition", String.Format("attachment;filename={0}.xls", NomRapport))               

    I've tried many solutions found in the net but no positive results.


    Please help.

    • Type modifié Alex Petrescu jeudi 10 février 2011 15:25
    • Déplacé Alex Petrescu jeudi 10 février 2011 15:26 message en anglais (Origine :ASP.NET)
    mercredi 9 février 2011 10:13

Toutes les réponses