?
Solved

Getting the page source from a WebBrowser control...

Posted on 2002-07-16
4
Medium Priority
?
157 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 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…
Suggested Courses

752 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