
Webbrowser control - Saving a web page
Quote:
> Hi Mike,
> last week's posting
> > However, I have managed to copy the webbrowser document to a string
which I
> > can then save in VB as a .html file, so do not need to worry about the
> > 'Save' button.
> sounds very interesting to me, since it represents exactly a problem
> that i'm confronted with too. What is the way you made it?
I use the following:-
strSave="D:\Temp\Myfile.htm"
strHTML = WebBrowser1.Document.body.innerHTML
Open strSave For Output As #1
Print #1, strHTML
Close #1
This seems to work fine, and you can open the html file in d:\temp by just
clicking on it. (Note this does not save pictures, only the html string).
Best regards - Mike
Penrith, NSW, Australia