通过VBA在Office 2003或2007任务窗格中显示HTML页面 [英] Display HTML page in Office 2003 or 2007 task pane via VBA

查看:153
本文介绍了通过VBA在Office 2003或2007任务窗格中显示HTML页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过VBA在Office 2003和/或2007任务窗格中显示HTML页面?

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

背景:我们有一个复杂的配置文件,我们的用户在Word中维护(使用真正的编辑器不是我们的受众的选择).

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

我们想创建几个工具栏按钮,这些按钮在任务窗格中显示基本的HTML页面,作为用户的在线帮助形式.

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.

我们要使用任务窗格来显示帮助(相对于外部浏览器或传统帮助引擎)的原因是,帮助内容嵌入"在Word中,而不是通过单独的应用程序显示.使用常规浏览器或帮助引擎显示帮助的问题在于,用户必须手动调整两个应用程序的大小和位置,以便他们能够同时看到它们,并且在多个应用程序之间切换时很容易丢失"一个应用程序.

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.

我们不想沿用编写基于VisualStudio的任务窗格组件的方式-我们希望保持简单(KISS),并将所有内容封装在易于分发的Word模板文件(.dot或dotx)中.

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.).

建议?

推荐答案

是的,有可能,请参阅此博客,以了解在Excel 2007中创建自定义任务窗格的详细步骤.

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

这篇关于通过VBA在Office 2003或2007任务窗格中显示HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆