Hi,
I need to grab all the links from a Web page and with Googling I got some code to do that but it fails and I get the error "Type 'HTMLAnchorElement' is not defined." I have added "Microsoft HTML Object Library" reference to the project but still it gives same error. I also referenced this library manually by browsing "C:\program files\microsoft.net\primary interop assemblies\Microsoft.mshtml.dll"
Need help with this code. Actually, my purpose is to identify a given link on a Web page and navigate it. If this code works then I can modify it to my requirements or if there is any other way to find a given link on the page and click on it then it is much appreciated.
Thanks in advance.
I need to grab all the links from a Web page and with Googling I got some code to do that but it fails and I get the error "Type 'HTMLAnchorElement' is not defined." I have added "Microsoft HTML Object Library" reference to the project but still it gives same error. I also referenced this library manually by browsing "C:\program files\microsoft.net\primary interop assemblies\Microsoft.mshtml.dll"
|
Need help with this code. Actually, my purpose is to identify a given link on a Web page and navigate it. If this code works then I can modify it to my requirements or if there is any other way to find a given link on the page and click on it then it is much appreciated.
Thanks in advance.
Replies
Know the answer? Post it — somebody with the same question will find it here.