[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3292
  • Last Modified:

Scale HTML page to fit Microsoft Web Browser ActiveX Control

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?

Thanks.
0
JohnGalt22
Asked:
JohnGalt22
  • 2
1 Solution
 
Jeffrey CoachmanCommented:
Does this Stored HTMP page scale to fit in Internet Explorer?
0
 
JohnGalt22Author Commented:
No.

It will center itself horizontally in the IE window, but unless IE is open to full screen the page does not fit vertically.
0
 
Jeffrey CoachmanCommented:
JohnGalt22,

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:
http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_21912706.html
http://books.google.com/books?id=FmGufw4ce2gC&pg=PA245&lpg=PA245&dq=web+page+automatically+scale+to+fit&source=bl&ots=gsgYIAqZZx&sig=OFT2pVNyjvplLAMQEjMh0uszi_Y&hl=en&ei=oDihScKiCtCCtwf8_cmKDQ&sa=X&oi=book_result&resnum=8&ct=result#PPA246,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.
http://vba-corner.livejournal.com/4623.html
Or, just using something like this:
    Application.FollowHyperlink "http://www.cnn.com"

JeffCoachman
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now