Solved

how to get the html of a page using WebBrowser control

Posted on 2004-09-10
2
170 Views
Last Modified: 2010-05-03
I'm using the WebBrowser control to open a web page, what I need is to see the html of that file.

How can I do this?
0
Comment
Question by:matrix717
  • 2
2 Comments
 
LVL 16

Expert Comment

by:JohnBPrice
ID: 12030070
WebBrowser1.document returns a IHTMLDocument, with which you can get everything.  The HTML for the <BODY, for example, is
WebBrowser1.document.body.outerhtml
0
 
LVL 16

Accepted Solution

by:
JohnBPrice earned 125 total points
ID: 12030084
webbrowser1.document.documentelement.outerhtml will give everything inside the <HTML> tag.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question