Hi,
Does anyone know if it is possible to host a web page in an Action Pane of Word (through ActiveX control or otherwise), in such a way that events (e.g. button clicks, page navigations) could be captured and routed back to the application
For example, a web page that contains several forms, a submit button and a cancel button is residing in the Action Pane. If a user fills out the form and presses Submit, this triggers an event inside the Action Pane and some changes occur. Likewise with Cancel.
The idea is to merge the web app functionality with the MS Word, so that a user does not have to open a seperate window/run a different application in order to perform an action that will affect the current document.
Any and all suggestions are appreciated.
-Nick

Hosting a web page in Action Pane (MS Word 2003)
xchiaroni
Yes it is possible to do this. I have posted a simple example of how to do this on my blog.
http://blogs.msdn.com/pstubbs/archive/2005/09/05/461130.aspx
Paul Stubbs
Program Manager
Microsoft Corporation
rythm
Misha,
A webbrowser control hosted within Word rather than the native winform controls would help us avoid creating two independent code branches in the project. Instead, we just use one code base (i.e. the web app) and two different views into it - directly through a browser, or through MS Word (with all the added benefits of its event model).
Hamdy Ghanem
Mike,
That's correct - I am trying to reuse some of the web based functionality within Word Action Pane. Direct access to the business tier is the aim.
The idea is to provide a light-weight client (and in doing so avoid having to repeat the logic already implemneted on the web app end) that would provide a familiar interface (i.e. familiar to the web app users) within Word.
James Webster
While it is possible to use WebBrowser control to host the web page I do not think there is a rich model for hooking into the events that occur on the web page.
A counter question though - why you need to host a web page for your UI An alternative is to show a winform's controls but I wonder why it is not a suitable model for this scenario.
Misha
John Eimer
It is possible to host the SHDocVw control within a winform control that can be hosted in the ActionsPane but there is limited control on this you can detect navigation events. Am also curious I presume you are trying to reuse Web based development, is this an N-Tier based web application in that you could maybe create a richer winforms control and talk to the business tier directly
Regards
Mike Walker MVP
Visual Developer VSTO