Shoutbox

HTML of WebBrowser control in VB - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: HTML of WebBrowser control in VB (/showthread.php?tid=15060)

HTML of WebBrowser control in VB by Dempsey on 09-01-2003 at 07:58 PM

In VB, how do i get the html code of the page currently being displayed in the web browser control?  Any ideas?


RE: HTML of WebBrowser control in VB by Hah on 09-05-2003 at 01:45 AM

WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER

Then you can use the Win32 api to save it where ever u like and access it from Open File For Output/Input As ........... etc etc.

hehe, hope that helps, aint much and is extrememly basic.

Hah

(Whacko, if u read, contact me on msn if u pos can, u asked me bout somit in pm and u didnt reply when I replied)


RE: HTML of WebBrowser control in VB by Hah on 09-05-2003 at 01:46 AM

Also, i think there is something like

WebBrowser.Document.documentElement.innerHTML

but I havent got that to work yet.

Try MSDN.

Hah


RE: HTML of WebBrowser control in VB by Dempsey on 09-05-2003 at 10:17 AM

Yea i tried WebBrowser.Document.documentElement.innerHTML but it just raised errors.  Once ive done WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER
how do i actually save the file?