简体   繁体   English

如何设置Web浏览器控件的Content-Type?

[英]How to set Content-Type of a Webbrowser Control?

Is it possible to set the Content-Type of a document in a webbrowser control? 是否可以在Web浏览器控件中设置文档的Content-Type?

For example how can I show an XML document rendered as XML in a webbrowser control by using DocumentText? 例如,如何使用DocumentText在Webbrowser控件中显示呈现为XML的XML文档?

Try add an extension to your IMoniker::GetDisplayName implementation . 尝试将扩展添加到IMoniker :: GetDisplayName 实现 This will cause the URL moniker to look under HKEY_CLASSES_ROOT.??? 这将导致URL名称在HKEY_CLASSES_ROOT下显示。 keys for mime types. MIME类型的 Then you can use the webbrowser's documen 's IPersistMoniker interface to load the moniker . 然后,您可以使用Web浏览器的文档IPersistMoniker界面加载名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM