Display HTML page in Office 2003 or 2007 task pane

2019-08-23 10:10发布

问题:

Is it possible to display an HTML page in an Office 2003 and/or 2007 task pane via VBA?

Background: We have a complicated configuration file that our users maintain in Word (using a real editor is not an option for our audience).

We would like to create several toolbar buttons that display a basic HTML page in a task pane as a form of online help for our users.

The reason we want to use a task pane to display help (vs. an external browser or traditional help engine) is so that the help content is "embedded" in Word vs. displayed via a seperate application. The problem with using a regular browser or help engine to display help is that users have to manually size and position both applications so that they can see them simultaneously and its very easy to "lose" one application when togging between many applications.

We don't want to go down the route of writing a VisualStudio based task pane component - we want to keep things simple (KISS) and encapsulate everything in an easy to distribute Word template file (.dot or dotx.).

Suggestions?

回答1:

Yes it is possible, see this blog for detailed steps in creating the custom task pane in Excel 2007.

http://blogs.msdn.com/gabhan_berry/archive/2008/08/13/custom-task-panes.aspx