Creating a web browser control in an Access Form that uses Firefox

LearningToProgram
LearningToProgram used Ask the Experts™
on
I need to embed a web browser in a Form in Access 2007 so that a web page opens inside the form (Without a browser opening up outside of Access).
I've done this  using the Active X control, but that uses Internet Explorer.
The website I need to access only works with Firefox. Is there anyway to do this with Firefox? So that the Firefox browser opens a web page inside of the Access Form?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Have a look at the following website, they have an ActiveX control for Mozilla (Firefox)

http://www.iol.ie/~locka/mozilla/control.htm
Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
Try changing the Class Property of the WebBrowser control from:
Shell.Explorer.2
to:
Shell.FireFox.2

Author

Commented:
Hi, I tried changing the class to shell.firefox.2, but it still opens with Internet Explorer.
Do I need to change the OLE Class from Microsoft Web Browser to something else?
Thanks
Paul
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
How are your detecting what version the web browser is opening under?
I don't know of many websites that "Only" appear when accessed via FireFox.

In other words can you clearly define what: "only works with Firefox." ...means specifically with regard to opening the website and viewing the site.
Then clearly explain what Firefox allows you to do that IE does not.

Is this a website you can post a link to here, so that we can try to replicate this issue?

Top Expert 2011
Commented:
LearningToProgram,

Did you install the Mozilla ActiveX Control?

Author

Commented:
Hi TheHiTechCoach,  no I don't  know how to install the Mozilla Activex Control
 Can you tell me how to do this?
Thanks,
Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012
Commented:
LTP,

All the info on how to do this can be found in the link TheHiTechCoach posted...
Top Expert 2011

Commented:
LearningToProgram,

What you need is in the  link in the first reply by logic_chopper
Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
...oops


Jeff

Author

Commented:
Ok, sorry, I had missed the first post about installing the Mozilla ActiveX control.
So I did that now, (I downloaded Mozilla ActiveX Control 1.7.12, then  ran it, then did this:
Type "regsvr32 mozctlx.dll", which succeeded.
I then put the mozilla control on my form.

I put this in the on Enter event of the form:

Private Sub MozillaBrowser4_Enter()
Me.MozillaBrowser4.Navigate "http://www.google.com"
End Sub

When I open the form now all I get is a white box where the browser should be.  (When I'm in design mode for the form, and I click on the form where the browser should be, it turns bright green and says "Miozilla Control" .
Any ideas on what I'm doing wrong?


Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
<I put this in the on Enter event of the form:>
No, you put it in the On Enter event of the browser control.

You should instead put this on the Open event of the "Form", just to verify that it works...

Author

Commented:
Okay, we're making progress
 now it's giving the error message, "browser in not in a valid state"
try clicking on the white box and see if it loads your page, alternatively attach the navigate code to a button click event instead (or form load)

Author

Commented:
Excellent!  So I put the navigate code in a button, and everything works now Except--the size of the browser in only about 2" by 2", even though the size of the control on the form is over 10" wide. Any ideas on how to make the browser fill the full space?
Top Expert 2011
Commented:
Used to have the same issue with an older version of IE .

IIRC, when you add the control to the form you need to draw it to the size you want. Once the form is saved you can't change the size. You have to delete the control. Close the form. Reopen the form again in design view. Add the control again with the desired size.

Author

Commented:
Thanks for all of the help!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial