1
Answer

how do i save the contents of a axWebBrowser1 to a htm file ?

Photo of mrxs1999

mrxs1999

20y
2.2k
1
hi how do i save the contents of a axWebBrowser1 to a htm file ? i have a webpage loaded and would like to save it to my harddrive. also how do i open the file from my harddrive to open in the axWebBrowser1 box ? Thanks MrXs

Answers (1)

0
Photo of mrxs1999
NA 19 0 20y
first problem solved i used the following code : protected void FileSaveAs_Click(object sender, EventArgs e) { Object o = null; AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, ref o, ref o); } but i still have the open htm file problem, any ideas ? Thanks