read the data from a Webbrowser control?

binabik80

New member
Joined
Dec 12, 2012
Messages
2
Programming Experience
10+
I am trying to read the data from a Webbrowser control (the source of the HTML page).

I know this is not the best way to do this, but I need specific information from (internally generated) pages
and this is the easiest way to get it.

I need to step through the page line by line.

Can anyone point me in the right direction? I thought that Streamreader would be the way to go, but haven't gotten it to work as of yet.

Thanks.
 
The example at the bottom of this page shows you how to do this. You should navigate the document tag by tag rather than line by line.


That page shows how to create an HTML Table and fill it with data from the Northwind database, which isn't what I wanted to do.

I will look and see if that is a way I can go. Any other ideas?
 
the line to show html...

Dim html as String
html = WebBrowser1.DocumentText
MessageBox.Show(html, "html")

the code is very useful for web scraping.
 
Back
Top