Results 1 to 4 of 4

Thread: [2005] What is equiv of WebBrowser1.documenttext in AxWebBrowser1?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2007
    Posts
    18

    Question [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2007
    Posts
    18

    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 :-/

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width