Response ContentType "application/msword" not working in "Microsoft Edge" !!! RRS feed

  • Question

  • Hi,

    I am trying to generate Word document file on the client side from HTTP Response Output stream in "Edge", but the browser always closes without leaving errors . My code run perfect for "Internet Explorer". Kindly help me on this.

    here is my code:

      With Response
                .ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
                .AddHeader("Content-disposition", "attachment;filename=" & mstrFilePathName)
            End With

    Note: the path inside mstrFilePathName is fine, as I said it runs well in IE!

    Friday, May 17, 2019 6:55 PM

All replies