Solved

Getting the page source from a WebBrowser control...

Posted on 2002-07-16
4
155 Views
Last Modified: 2010-05-02
Hi, I need to simply get the page source from a webbrowser control.  The source should be returned as string preferably.  Anyone know how I can do this?
Thanks,
Josh
0
Comment
Question by:jsm11482
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 75 total points
ID: 7158566
strSource = WebBrowser.Document.documentElement.outerhtml
0
 
LVL 2

Expert Comment

by:DanAvni
ID: 7158819
strSource = WebBrowser.Document.body.innerhtml
0
 

Author Comment

by:jsm11482
ID: 7159361
I believe that both of these comments work the same, but since AzraSound was first, thats who'll get the points!

AzraSound: Great answer, exactly what I wanted! Thank you for your time!
-Josh
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 7159470
Glad I could help   :-)
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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…
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…

691 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