Results 1 to 4 of 4

Thread: Saving Web Pages??

  1. #1

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Question

    I don't know if this is possible but I would like to know if it is (and if so how ).

    I need some way of saving a web page as an htm file, but also the web page has about 200 links on it to other pages which will also need saving as htm files.

    Now I could do this manually (real pain!!) but is there anyway I could automate this with VB??
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

  2. #2
    Guest
    This will save a webpage along with everything on it.

    Code:
    'Needed:  Webbrowser1
    
    webbrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER

  3. #3

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    I will try that as soon as I get the MSDN help installed on my machine, as at the moment I've never used the web browser control.

    Cheers.
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

  4. #4
    Guest
    Well, getting started, here are the basic commands you need:

    Code:
    'Go to the previous webpage
    WebBrowser1.GoBack
    'Go to the present webpage
    WebBrowser1.GoForward
    'Go to the default IE home
    WebBrowser1.GoHome
    'Go to the default search page
    WebBrowser1.GoSearch
    'Refresh the current webpage
    WebBrowser1.Refresh
    'Navigate to a webpage
    WebBrowser1.Navigate "www.vb-world.net"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width