Solved

webbrowser control: Accessing the HTML of frames

Posted on 2000-02-24
3
147 Views
Last Modified: 2013-12-26
I cant figure out how to access the html of frames in the web browser control in the document_complete event. The document available there is just the frameset document. I can get the number of frames with
document.frames.ItemCount (if I remember correctly)
but not a usable reference or the HTML of any of them. I've tried
document.frames.item(0), document.frames.item(1), etc.
but cant get anything at all from the resulting object.
For a non-framset document.body.outerHTML gets what I want - how can I get this for all of the frames inside a frameset document?
Thanks.
P.S.  I have to use this control and not the Internet Transfer Control or Winsock.
0
Comment
Question by:MikeThelwall
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
mcrider earned 100 total points
ID: 2554188
There is a complete example of walking through the frames in a WebBrowser control in http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=10295323 

When it walks through the frames, this example pulls out the HTML BODY...


Cheers!
0
 

Author Comment

by:MikeThelwall
ID: 2557377
You da man!!!
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2557653
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

919 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

12 Experts available now in Live!

Get 1:1 Help Now