Is there any way to open Internet Explorer process from C#, send html content to this browser and capture ‘displayed’ content?
I am aware of other html stripping methods (e.g. HtmlAgilityPack) but I would like to explore the above avenue.
Thanks,
LG
You can use the WebBrowser control, which exists for both WinForms and WPF, to host IE in your application. You can then set the control’s Source to your HTML, wait for the content to load (using the LayoutUpdated event, not the Loaded event, which is raised when the HTML is finished downloading, not necessarily arranged and all dynamic JS run), then access the Document property to get the HTML.