Scale HTML page to fit Microsoft Web Browser  ActiveX Control

Posted on 2009-02-21
Last Modified: 2012-05-06
I am trying to display a stored HTML page in my MS Access  2003 database using a Web Browser Control (ActiveX).

The page does NOT scale to the physical dimensions of the Web Browser Control, like a jpeg image will scale to fit an ImageFrame control.

I do not see any settings on the property sheet of the Web Browser Control to specify the size of the linked to HTML page.  

Can this not be controlled?

Question by:JohnGalt22
    LVL 74

    Expert Comment

    by:Jeffrey Coachman
    Does this Stored HTMP page scale to fit in Internet Explorer?

    Author Comment


    It will center itself horizontally in the IE window, but unless IE is open to full screen the page does not fit vertically.
    LVL 74

    Accepted Solution


    Then this appears to be an issue with the Web page (or HTML) itself.
    The webBrowser control has very little control over this.

    See here:,M1

    Also, please remember that there are real human limits here.
    If your webbrowser control is 1 inch square, no mater what you do, most web pages will not be readable.

    There is the ability of the page to "Squeeze" itself (by using frames) to fit itself into the available screen real estate and keep its same size.
    There is also the ability of certain web browsers to adjust the font size to make more text fit on the screen.
    Finally, IE7 has the ability to "Zoom" in on a web page.

    None of these things can be controlled by the web browser control.
    The web browser control is just designed to "View" a target document, in it's most basic sense.

    If you need more control than the net web browser has, then perhaps you should just open an instance if IE Directly.
    Or, just using something like this:
        Application.FollowHyperlink ""


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
    This isn't a frequent question on EE. I must have seen it three or four times (among several thousand questions). However, I use this trick quite often, most frequently as a delayed Current event. A form does not expose it's calculation dependenc…
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now