Solved

how to get the html of a page using WebBrowser control

Posted on 2004-09-10
2
169 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

792 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