Solved

how to get the html of a page using WebBrowser control

Posted on 2004-09-10
2
167 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now