Solved

Saving Webpages Automatically

Posted on 2004-10-25
129 Views
Last Modified: 2010-05-02
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
Question by:burnttime
    2 Comments
     
    LVL 10

    Expert Comment

    by:anv
    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
     
    LVL 10

    Accepted Solution

    by:
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Cisco Complete Network Certification Training

    If you’re an IT engineer or technician, it's time you take your career to the next level. This elite training bundle is brimming with all of the information you need to learn to sit for Cisco CNNA, CCNP, and CCENT certification exams.

    Suggested Solutions

    Title # Comments Views Activity
    Problem to cells 11 55
    VB6 convert MSHFlexgrid1 cells 7 30
    vb6 programatically bring window to front 8 30
    Problem to skip loop 6 28
    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now