Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    17

    Red face Unanswered: Accessing the Web via VB6 (Automation Error!)

    Hi.
    I am trying to read a website into a variable so I can run parsing scripts.
    I am using:

    Dim Web As New SHDocVw.InternetExplorer
    Dim Doc As New MSHTML.HTMLDocument

    Web.Navigate "http:// website "
    Set Doc = Web.Document

    (I have references and instances of the following classes installed on my form)
    - Microsoft Internet Controls (shdocvw.dll)
    - Microsoft HTML Object Library (MSHTML.TLB)

    When I run the above code, I get an Automation Error for the last line.
    What am I doing wrong ???

    Help appreciated.
    Thanks
    Phil.

  2. #2
    Join Date
    Oct 2002
    Location
    Argentina
    Posts
    72
    Instead referencing it in your project try adding Internet Control to your project so that you can add the control from the toolbox to your form.
    Hope it helps

Posting Permissions

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