We're using the Web Browser Control to display a third party intranet site within our application. We don't have direct control over the site & unfortunately it has been developed for 1200x800 only and several of our Win XP clients are still running 1280
x 1024. As a result the isplay sizeusers have to scroll the page.
As a work around in IE directly we can zoom the page and while the text is obviously smaller it is still legable. We'd hoped from our application we'd be able to give the user the ability to show the page in standard format or zoomed for their display.
1. Is there an entry point into the Web Browser Control that allows us to zoom the page?
2. If not is there a comparable control out there that we could use instead?
3. Is there an easy fix to the asp.net code we could request the third party developer include to scale the intranet site based on screen resolution?
Thanks, any thoughts & ideas will be greatly appreciated.
GeoffT
0 Points
1 Post
Web Browser Control - Zooming Web Page
Mar 19, 2012 04:21 AM|LINK
We're using the Web Browser Control to display a third party intranet site within our application. We don't have direct control over the site & unfortunately it has been developed for 1200x800 only and several of our Win XP clients are still running 1280 x 1024. As a result the isplay sizeusers have to scroll the page.
As a work around in IE directly we can zoom the page and while the text is obviously smaller it is still legable. We'd hoped from our application we'd be able to give the user the ability to show the page in standard format or zoomed for their display.
1. Is there an entry point into the Web Browser Control that allows us to zoom the page?
2. If not is there a comparable control out there that we could use instead?
3. Is there an easy fix to the asp.net code we could request the third party developer include to scale the intranet site based on screen resolution?
Thanks, any thoughts & ideas will be greatly appreciated.
DarrellNorto...
All-Star
87473 Points
9723 Posts
Moderator
MVP
Re: Web Browser Control - Zooming Web Page
Mar 19, 2012 09:31 AM|LINK
In C++, you can set the zoom using the IWebBrowser2::ExecWB command with the following arguments (assuming m_browser is the Web Browser Control):
http://msdn.microsoft.com/en-us/library/ie/aa752046(v=vs.85).aspx#use_ExecWB
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.