【发布时间】:2010-04-04 00:30:12
【问题描述】:
是否可以在 webbrowser 控件中设置文档的 Content-Type?
例如,如何使用 DocumentText 在 webbrowser 控件中显示呈现为 XML 的 XML 文档?
【问题讨论】:
标签: .net com webbrowser-control mshtml contenttype
是否可以在 webbrowser 控件中设置文档的 Content-Type?
例如,如何使用 DocumentText 在 webbrowser 控件中显示呈现为 XML 的 XML 文档?
【问题讨论】:
标签: .net com webbrowser-control mshtml contenttype
尝试将扩展名添加到您的 IMoniker::GetDisplayName implementation。对于 mime 类型,这将导致 URL 名字对象为 look under HKEY_CLASSES_ROOT.??? keys。然后你可以使用webbrowser's documen的IPersistMoniker interface to load the moniker。
【讨论】: