IHTMLDocument2不在Microsoft Internet Controls中 [英] IHTMLDocument2 not in Microsoft Internet Controls

查看:82
本文介绍了IHTMLDocument2不在Microsoft Internet Controls中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注< g class =" gr_ gr_49 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace"数据-GR-ID =" 49" id =" 49"> this:< / g> < g
class =" gr_ gr_38 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace"数据-GR-ID =" 38" id =" 38"> webbrowsercontrol< / g> - < g class =" gr_ gr_40 gr-alert gr_spell gr_inline_cards
gr_disable_anim_appear ContextualSpelling"数据-GR-ID =" 40" id =" 40"> unauthorizedaccessexception< / g> -when-access-property-of-a-< g class =" gr_ gr_39 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling
ins-del multiReplace"数据-GR-ID =" 39" id =" 39"> fram< / g> 

I'm following <g class="gr_ gr_49 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" data-gr-id="49" id="49">this :</g><g class="gr_ gr_38 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" data-gr-id="38" id="38">webbrowsercontrol</g>-<g class="gr_ gr_40 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" data-gr-id="40" id="40">unauthorizedaccessexception</g>-when-accessing-property-of-a-<g class="gr_ gr_39 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" data-gr-id="39" id="39">fram</g> 

需要在C#中使用IHTMLDocument2< g class =" gr_ gr_92 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear
ContextualSpelling ins- del multiReplace"数据-GR-ID =" 92" id =" 92"> winforms< / g> 项目在VS 2015中定位.net 4.5.2所以我添加了对COM库"Microsoft Internet Controls"的引用。但是在命名空间SHDocVw中没有  IHTMLDocument2
类型,我无法找到解决方案。

I need to use IHTMLDocument2 in C# <g class="gr_ gr_92 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" data-gr-id="92" id="92">winforms</g> project in VS 2015 targeting .net 4.5.2 so I added a reference to COM library "Microsoft Internet Controls" but there is no IHTMLDocument2 type in the namespace SHDocVw, and I am not able to find a solution to this.

有什么想法吗?

谢谢。

推荐答案

我想通了。

需要另一个引用 - 对于Microsoft.mshtml.dll 

There is another reference needed - to Microsoft.mshtml.dll 

using mshtml; using SHDocVw;


这篇关于IHTMLDocument2不在Microsoft Internet Controls中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆