【问题标题】:How to set Content-Type of a Webbrowser Control?如何设置 Webbrowser 控件的 Content-Type?
【发布时间】:2010-04-04 00:30:12
【问题描述】:

是否可以在 webbrowser 控件中设置文档的 Content-Type?

例如,如何使用 DocumentText 在 webbrowser 控件中显示呈现为 XML 的 XML 文档?

【问题讨论】:

    标签: .net com webbrowser-control mshtml contenttype


    【解决方案1】:

    尝试将扩展名添加到您的 IMoniker::GetDisplayName implementation。对于 mime 类型,这将导致 URL 名字对象为 look under HKEY_CLASSES_ROOT.??? keys。然后你可以使用webbrowser's documenIPersistMoniker interface to load the moniker

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-12-08
      • 2019-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-06
      • 2020-09-30
      相关资源
      最近更新 更多