Re: MSHTML without rendering UI
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 01/24/05
- Previous message: Caeanis: "Unable to enumerate elements on web page in other Win2k profiles"
- In reply to: Dean Hallman: "MSHTML without rendering UI"
- Messages sorted by: [ date ] [ thread ]
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
- Previous message: Caeanis: "Unable to enumerate elements on web page in other Win2k profiles"
- In reply to: Dean Hallman: "MSHTML without rendering UI"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|