Using the com.jacob.com.* and com.jacob.activeX.* packages, I have been interacting with IE Browser fine. I want to now use Mozilla, however, I cannot seem to get too far.

Below is the bit of code needed to open an IE browser. I try todo same with Mozilla activeX, and I get error.

Has anyone else tried to interface with a Mozilla browser before or
can make suggestions what i might be doing wrong?

Thanks in advance for anyone who can help!

=======================================================
This works fine:

ActiveXComponent b = new ActiveXComponent
("InternetExplorer.Application.1");
try {
b.setProperty("Visible", new Variant(true) );
} catch (Exception e) {
e.printStackTrace();
}

========================================================
This creates an error:

ActiveXComponent b = new ActiveXComponent("Mozilla.Browser.1");
try {
b.setProperty("Visible", new Variant(true) );
} catch (Exception e) {
e.printStackTrace();
}

Error:
com.jacob.com.ComFailException: Invoke of: Visible
Source: Mozilla.Browser.1
Description: Browser is not in a valid state

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to