Solved

how to get the html of a page using WebBrowser control

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

773 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