.GetSource() in Microsoft Web Browser ActiveX ??
-
hi every body i have inserted microsoft web browser ActiveX in my dialog and i want to use it's features! there is no GetSource() in this activeX's functions So how can i Get the Source of HTML that i am navigating? thanx a lot -=Ehsan-de-Burge=-
-
hi every body i have inserted microsoft web browser ActiveX in my dialog and i want to use it's features! there is no GetSource() in this activeX's functions So how can i Get the Source of HTML that i am navigating? thanx a lot -=Ehsan-de-Burge=-
Yes, it is possible. Here is how: 1. Use the IWebBrowser2::Document property to obtain an IDispatch interface to the DOM document. 2. Query the obtained IDispatch for IHTMLDocument3. 3. Use the IHTMLDocument3::createTextNode() method to convert the root node to text. If you don't like that approach you can simply enable the menu bar using the IWebBrowser2::MenuBar() method. View source is there. Ivor S. Sargoytchev Dundas Software