Hi,
I'm having a problem with retrieving some text from an Internet Explorer browser window. The window was created by my program, and it only has one line of text on it.
Here's what I have so far:
SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass();
IWebBrowserApp commWindow = (IWebBrowserApp) ie;
(after navigating and loading the site with commWindow)
commWindow.Document.....
now I am unsure what to do. In VB.Net, it looked something like this:
commWindow.Document.Body.InnerText
I have looked around the web, and I think I might have to use something like:
HTMLDocument wd = (HTMLDocument)commWindow.Document;
However, this brings about compiler errors (can't find type HTMLDocument). I am completely lost on how to do this. Any help would be greatly appreciated! Thanks!
Raheel
I'm having a problem with retrieving some text from an Internet Explorer browser window. The window was created by my program, and it only has one line of text on it.
Here's what I have so far:
SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass();
IWebBrowserApp commWindow = (IWebBrowserApp) ie;
(after navigating and loading the site with commWindow)
commWindow.Document.....
now I am unsure what to do. In VB.Net, it looked something like this:
commWindow.Document.Body.InnerText
I have looked around the web, and I think I might have to use something like:
HTMLDocument wd = (HTMLDocument)commWindow.Document;
However, this brings about compiler errors (can't find type HTMLDocument). I am completely lost on how to do this. Any help would be greatly appreciated! Thanks!
Raheel