How to Save Web Pages in WebBrowser1 using VB6?
It's not about saving the source code to text file..
It's the same as clicking File > Save Page As... in Firefox. :)
See third code segment in second post of this tutorial... http://www.vbforums.com/showthread.php?t=384076
Option Explicit Private Sub Command1_Click() WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT End Sub Private Sub Form_Load() WebBrowser1.Navigate2 "www.google.com" End Sub
It works.. i can download the complete webpage :)
But.. can i hide the saving dialog? .. also the choosing where the webpages should be save?
I mean.. one-click then the webpage is saved on a specified path..
Keep reading that tutorial and now that you know the keywords it should make it easy for you with your friends (yahoo, google, ask, answers, bing).
I found something..
This is how to save a webpage with dialog..
WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT
Help me with SendKeys..
See my other post over at vbforums...