Solved

Getting the page source from a WebBrowser control...

Posted on 2002-07-16
4
150 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
  • 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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.
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…

757 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