1

Is it possible to set the Content-Type of a document in a webbrowser control?

For example how can I show an XML document rendered as XML in a webbrowser control by using DocumentText?

Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46
dr. evil
  • 26,944
  • 33
  • 131
  • 201

1 Answers1

0

Try add an extension to your IMoniker::GetDisplayName implementation. This will cause the URL moniker to look under HKEY_CLASSES_ROOT.??? keys for mime types. Then you can use the webbrowser's documen's IPersistMoniker interface to load the moniker.

Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46