The WebBrowser controller loads any file correctly mhtif I use the method Navigate, but when I use the DocumentTextor properties DocumentStream, the source of the mht file is displayed as if I opened the file in notepad.
If I write a stream to a temporary file, then go to it, it works correctly, but I do not want to do this.
This problem seems common, but I did not find a working solution for it. Some people suggest that I cheat IE by implementing the IPersistMonikercom, ..., etc. interface . I tried with this a bit, but unfortunately I got the same result. Maybe I did something wrong. I still feel this should be a simpler solution (besides saving to a temporary file), any idea?
source
share