Re: MSHTML without rendering UI

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 01/24/05

  • Next message: Igor Tandetnik: "Re: Inserting .NET UserControl into a hosted MSHTML Page"
    Date: Mon, 24 Jan 2005 18:02:02 -0500
    
    

    "Dean Hallman" <deanh@sc.rr.com> wrote in message
    news:uqgId.30542$dt3.2951594@twister.southeast.rr.com
    > I need to access the DOM from an NT service (or windowless app). I
    > don't want to display the web page. I just want to periodically
    > scrap some data off a particular web page. How can I get access to
    > the DOM without displaying a web page?

    You could simply host WebBrowser control on a hidden window.
    Alternatively, see WalkAll sample for an example of using MSHTML as a
    UI-less HTML parser.

    Note that Microsoft does not recommend using MSHTML in services or other
    environments lacking an interactive user. See KB Article KB244085 "PRB:
    Parsing HTML on Server Using Internet Explorer Components"

    -- 
    With best wishes,
        Igor Tandetnik
    With sufficient thrust, pigs fly just fine. However, this is not 
    necessarily a good idea. It is hard to be sure where they are going to 
    land, and it could be dangerous sitting under them as they fly 
    overhead. -- RFC 1925 
    

  • Next message: Igor Tandetnik: "Re: Inserting .NET UserControl into a hosted MSHTML Page"

    Relevant Pages

    • MSHTML without rendering UI
      ... I need to access the DOM from an NT service (or windowless app). ... want to display the web page. ... I just want to periodically scrap some data ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)
    • Re: fetching 2nd page in the back
      ... Call the servlet from the javascript with Dom ... parse this dom to display in the table. ... when this user gose to the 2 nd ...
      (comp.lang.javascript)
    • fetching 2nd page in the back
      ... Call the servlet from the javascript with Dom ... parse this dom to display in the table. ... when this user gose to the 2 nd ...
      (comp.lang.javascript)
    • Re: Creating a booking engine with Web Services
      ... DOM or XSLT. ... out a few values out of the Xml and display them to a user. ... with XPath I think is simplier to use then XSLT. ...
      (microsoft.public.dotnet.framework.aspnet.webservices)