Jack.NET

Hello-

My company submits financial information to an accounting firm every month via a secure web site html form. This html form is quite long, and I would like to write an application that will automatically fill in this html form with the financial numbers which I can programatically pull out of our database.

I imagine that the way it might work is that I navigate to this web page in an IE window, and then run my custom app to populate the form. I assume that I will need to access the IE Document object to do this.

My question is: How do I retrieve this IE Document object from another app I understand that there is an IE toolbar API that has access to the Document object. However, I would preferably like to develop the app as a separate executable.

Is there an API that will give me such access Can someone please point me to the specific classes and methods

Thanks so much!




Re: Internet Explorer Extension Development How do I access Document object for a remote IE browser window?

Reza Nourai - MSFT

Sure you can launch IE via making a CoCreateInstance from your app. this will return an IWebBrowser2 interface to the browser. You can use this to navigate to the page you are interested in, then call a QueryInterface for the IHTMLDocument2 interface from the IWebBrowser2 object.

Let me know if you have trouble with this.

-Reza

NOTE: This will not work for Vista with IE running in protected mode (unless your app is run with elevated priveledges).





Re: Internet Explorer Extension Development How do I access Document object for a remote IE browser window?

Jack.NET

Thanks!

I realized that rather than have my standalone app recognize a browser window that was independently opened, it's easier to write a Visual C# app with an embedded WebBrowser control that I can automate as desired.