Save as HTML on WebBrowser Control
-
How to save the webpage on WebBrowser Control to file? A lot of function for WebBrowser control such as GoBack,GoForward,GoHome,Navigate,etc... but no function for save it. Please give me some idea for implement this function. Thanks
Here is an article on how it can be done - Retrieving the HTML source code[^] Since you're using a browser control you will need to call its
get_Document
method instead ofGetHTMLDocument
. I also recommend that you use the ATL smart pointer classes likeCComPtr
andCComQIPtr
. Look at the Comments and Discussions section at the end of the article on other ways to do this.«_Superman_» _I love work. It gives me something to do between weekends.
-
Here is an article on how it can be done - Retrieving the HTML source code[^] Since you're using a browser control you will need to call its
get_Document
method instead ofGetHTMLDocument
. I also recommend that you use the ATL smart pointer classes likeCComPtr
andCComQIPtr
. Look at the Comments and Discussions section at the end of the article on other ways to do this.«_Superman_» _I love work. It gives me something to do between weekends.