|
-
Oct 4th, 2007, 07:33 PM
#1
Thread Starter
Junior Member
[2005] What is equiv of WebBrowser1.documenttext in AxWebBrowser1?
I'm trying to accomplish something in a COM axwebbrowser control similar to accessing webbrowser1.DocumentText property of the built in .NET web browser control.
Does anyone have any idea how I can place the entire contents of the HTML file displayed in a COM webbrowser control into a string?
Last edited by OnlineNoob; Oct 4th, 2007 at 08:01 PM.
Reason: wrong question
-
Oct 4th, 2007, 07:38 PM
#2
Re: [2005] What is equiv of WebBrowser1.text in AxWebBrowser1?
As the documentation for the WebBrowser.Text property says:
This property is not supported by this control.
If it's unsupported then there obviously is no equivalent in the ActiveX document viewer control.
-
Oct 4th, 2007, 08:02 PM
#3
Thread Starter
Junior Member
Re: [2005] What is equiv of WebBrowser1.documenttext in AxWebBrowser1?
sorry jm, i've updated the question to try and help explain what I'm trying to do. sorry for the confusion :-/
-
Oct 4th, 2007, 08:41 PM
#4
Re: [2005] What is equiv of WebBrowser1.documenttext in AxWebBrowser1?
If I'm not mistaken you'd need a reference to the unmanaged MSHTML library, cast the control's Document property as the appropriate type from that library and then access the source from there. I believe that the AxWebBrowser.Document property exposes the same object as the WebBrowser.Document.DomDocument property. If you read the documentation for the HtmlDocument.DomDocument property it will give you an idea of how to proceed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|