Solved

webbrowser control: Accessing the HTML of frames

Posted on 2000-02-24
3
153 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
[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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

739 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