|
-
Aug 22nd, 2005, 12:40 PM
#1
Thread Starter
New Member
Anyone has the experience dealing with mozilla activex control?
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.
-
May 11th, 2006, 08:24 AM
#2
New Member
Re: Anyone has the experience dealing with mozilla activex control?
(before i start: please excuse my english, i'm from germany, berlin)
i have dealt with some similar problems the last three days. My problem was, that i did not know that using the MSHTML-types and mark the library "Microsoft HTML Object Library" as used in my project (i don't know, how the menu entry in english is, in german it is Extras/Verweise) is necessary to access the DOM via the mozilla control. I'm using VBA 6.0 with office 2000 and 2003. In this versions of VB the code to put the document-object into a variable is a set-call:
VB Code:
Set MyDoc = MozillaBrowser1.Document
the screenshot shows the binding of the library into the project for a VBA Editor:
i hope i could help a bit
greetings from berlin
holodoc
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|