I got a problem with mozilla activex control 1.7.7. I tried to walk the DOM tree with mozillax active control. But the IhtmlDocument2 cannot even intialize properly.(most of the html objects cannot be intialized) However, the mozilla activex control embedded in my program seems to navigate well.

I also tried to include a mshtml reference in my program, but did not work either.

Here is some code I use

Dim MyDoc As mshtml.IHTMLDocument2
MozillaBrowser1.Navigate("http://www.mozilla.org")

MyDoc=MozillaBrowser1.Document ///Here comes the problem, it returns Document automation initialization error.

I'm wondering if my mozilla activex control register well, however, since it can navigate, I think it register well. So what will be the problem?

Thanks in advance. I really appreciate your help.