Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 19, 2012 09:31 AM by DarrellNorton
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.
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):
m_browser.ExecWB(OLECMDID_PRINT, 0, NULL, NULL);