• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Reading content from embedded active x web browser.


I have a vb form with an embedded IE browser of which I can post data to text boxes, submit, and then read data back from text boxes via VB.

I am using the following for this:
ActiveXCtl8.Navigate "http://www.blagblahblah.co.uk/test.php"
Dim htmdoc As HTMLDocument
Set htmdoc = ActiveXCtl8.Document
htmdoc.Forms(0).all("form_name").Value = "bob"
htmdoc.Forms(0).all("form_age").Value = 55

This is working fine, but I need to be able to read other text from the browser that is not in a text box, ie normal html text in the browser. It does not matter if I can only read the text shown of the raw html as I can extrapolate what I need from either.

Any help or advice on this would be greatly appreciated.

(btw: apologies for only 350 points, but I have very few left)

Kind Regards

1 Solution
Hi chris_msl,

Presumably you can get htmdoc.innerHTML property. This should give you the raw HTML for the entire page. If you can then parse this to get your data you are done.

It all depends where the rest of the info is, if it is contained in other html elements then you can use a similar method to extract the info just by using the tag's name property as you are doing with the form:


Tim Cottee
chris_mslAuthor Commented:
Hi Tim,

Many thanks for this works a treat

Kind Regards


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now