How to set the Content-Type of a Webbrowser control?

Can I set the Content-Type of a document in a web browser control?

For example, how can I show an XML document represented as XML in a web browser control using a DocumentText?

+1
source share
1 answer

Try adding the extension to the IMoniker :: GetDisplayName implementation . This will cause the scroll URL to look under HKEY_CLASSES_ROOT. ??? keys for mime types. Then you can use the webbrowser documen IPersistMoniker interface to download nicknames .

0
source

Source: https://habr.com/ru/post/1785723/


All Articles