Webbrowser control font size ??

HI guys,

I have a webbrowser control on a form.
Access 2003.,
is there any way to control the size of the text in the webbrowser control like
you would in internet explorer ?
I am trying to make the size of the screen as small as possible..
in internet explorer i would just click on View/Text Size/ and then medium, small , large or what ever.
I do not need the use of the variable size., I just need to make it smaller than it already is.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan WarrenApplications DeveloperCommented:
Hi Kevin,

you could encapsulate your text in a <Font> tag to render fonts in a web-browser control.

<font size="2" face="Verdana">
This is a paragraph.
<font size="3" face="Times">
This is another paragraph.

Alan ":0)
kevinsreaAuthor Commented:
i don't see how that is going to change the font size in a webbrowser element in a form.

Alan WarrenApplications DeveloperCommented:
Hi Kevin,

could you explain a little about your intended purpose for your web-browser?
What  are you trying to display?

The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

kevinsreaAuthor Commented:
it displays the web page address that the user puts in the form.

kevinsreaAuthor Commented:
how do i close this question without awarding any points, since it has not been answered ??

kevin rea
Jeffrey CoachmanMIS LiasonCommented:
Try this first...

From this MS link:

Changing Fonts with the WebBrowser Control
The WebBrowser automation model does not support a method that allows you to change the font of the text of the currently displayed page. However, the WebBrowser control exposes this functionality through the IOleCommandTarget interface. Call the IWebBrowser2::get_Document method, which returns an IDispatch pointer. Using this IDispatch pointer, call QueryInterface on IID_IOleCommandTarget. With this IOleCommandTarget interface pointer, call IOleCommandTarget::Exec with OLECMDID_ZOOM and use the pvaIn input argument to pass a value in the range of 0 to 5 (where 0 is smallest), indicating the desired scale of the font. This, in effect, mimics the functionality available through the Internet Explorer Fonts command on the View menu.

This is your answer, straight from Microsoft.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
Glad i could help!

Thanks for the grade!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.