Pages

Friday, March 27, 2015

IHTMLDocument2 could not be found in C# solve

 The type or namespace name 'IHTMLDocument2' could not be found (are you missing a using directive or an assembly reference?)  

 

 

Hello my friends how are you. This is my first post of my website.if you are familiar with c#.some times these type of error can be occour .Today im going to show how to resolve this type of errors

if you get 
 The type or namespace name 'IHTMLDocument2' could not be found (are you missing a using directive or an assembly reference?)  error first you can go to Solution Explorer in visual Studio and


go to References and right click on it and then choose Add references .this will open new window then select COM tab and then in search box type Microsoft HTML Object Library

then press ok



then come back to code edit mode and then you can use Using mshtml Name space for your Project

Happy Coding :)
 if this Post  is helpful Please leave comment and share

Best Regards

Sameera Dissanayaka


No comments:

Post a Comment