Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get HTML Doc of the open browser

Status
Not open for further replies.

kshea

Technical User
May 31, 2002
60
CA
Hello All:

I have an ActiveX control application using ATL to get the current opened browser html document using IWebBrowser2::get_Document(IDispatch **ppDisp), then use IHTMLElement, IHTMLBodyElement,
IHTMLTxtRange::findText to find search item, search the keyword(s) and do highlighting and un-highlighting. The document gets corrupted afterwards. Some html tags will left uncleaned and document growing. But the source from browser View->Source is fine. Is it possible to get that copy? Or is there a way to keep a clean copy?

Thank you for your help
 
Never mind. I have solved this problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top