none
navigating to files with IE RRS feed

  • Question

  • Hello

    I develop with VB under visual studio

    I use ShDocVw to get an instance of IE (either running or I create one) (it is oIE in the code under)

    If the URL points to an http: location, no problem, I wait for IE to be not busy and I get to the DOM document.

    if the URL points to a file, which is in this case an HTML file, weird things happen : the following loop exits after a few loops (<10)

    try

          For i = 1 To 10000
            Debug.Print(oIE.ReadyState.ToString & " " & oIE.Busy.ToString)
          Next

    catch ex as exception

    ………..

    end try

       with error message "Une erreur HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM."

    trying to acces LocationURL property of oIE yields the message

       Message: "Le serveur RPC n’est pas disponible. (Exception de HRESULT : 0x800706BA)"

    somebody has an idea ?

    Friday, May 11, 2018 5:56 PM

Answers

  • no this is not the issue

    it has all to do with getting the Busy or ReadyState values from InternetExplorer

    I will post a specific question about this later

    • Marked as answer by JMB1502 Friday, May 18, 2018 6:35 AM
    Friday, May 18, 2018 6:35 AM

All replies

  • Hi,

    you must add the Mark of the web to your local (file://) web documents if they contain Active Content (scripting, ActiveX objects (eg.flash)

    Regards.


    Rob^_^

    • Marked as answer by JMB1502 Friday, May 18, 2018 6:33 AM
    • Unmarked as answer by JMB1502 Friday, May 18, 2018 6:33 AM
    Friday, May 18, 2018 1:24 AM
  • no this is not the issue

    it has all to do with getting the Busy or ReadyState values from InternetExplorer

    I will post a specific question about this later

    • Marked as answer by JMB1502 Friday, May 18, 2018 6:35 AM
    Friday, May 18, 2018 6:35 AM