• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Saving Webpages Automatically

I want to be able to type in to a textbox a website and then it downloads all the images and the page to my harddrive, the same as it would if you went to File>Save As... in IE
0
burnttime
Asked:
burnttime
  • 2
1 Solution
 
anvCommented:
try this..

use Web Browser control in ur application...which will open the link that u type into a textbox...

place a button on that form containing web browser control and add this code..

Private Sub SaveAsButtonClick()

    WebBrowser.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT

end sub

if u want to automate i.e u dont want the user to clkick on any button or so..then add above code in the Document_complete event..of the web browser control

like
sub webBrowser1_DownloadComplete()
    while webbrowser1.Busy  'ie. Web broswer has not yet finished navigating          to 'the ''desired link..
         DoEvents
    wend
 WebBrowser.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT
end sub


0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now