Gary Click
Gary Click

Reputation: 31

How to grab ALL html source from an instance of internetexplorer object with VB6?

I want to get ALL of the html from an open webpage on my computer using vB6. The webpage has multiple frames. I don't know html and I am not sure what frames are so please take that into account with your answer. I simply want the html in a text file in any text format so i can search through it for data. The 'IE show source' has all the info i need, but how to get that with a vb6 program? Most web searches I have done come up with how to get the html by downloading using an url and that wont work for me. I need the html from an open instance of IE. Preferably using the internetexplorer object with VB6. Thanks.

Upvotes: 3

Views: 329

Answers (2)

m0rpheu5
m0rpheu5

Reputation: 600

Save the HTML's source code.
Add it to the environment variables and open VB6:

  1. Open a new project/file
  2. Include your saved html
  3. Drag an drop the boxes

Upvotes: 1

Joey Ezekiel
Joey Ezekiel

Reputation: 1027

Have you tried the Winsock control? I think that is what your looking for.

Upvotes: 0

Related Questions