如何超链接到Word 2007帮助页面?(How do you hyperlink to Word 2007 help pages?)

编程入门 行业动态 更新时间:2024-10-28 13:21:08
如何超链接到Word 2007帮助页面?(How do you hyperlink to Word 2007 help pages?)

我想超链接到Word 2007附带的Word 2007对象模型参考文档中的页面。这些是使用Firefox无法理解的ms-help://协议的网页。

所以我想指定帮助页面的ms-help://路径作为查看器CLVIEW.EXE的命令行参数。

C:\ Program Files \ Microsoft Office \ Office12 \ CLVIEW.EXE

有人知道这个的命令行语法吗?

I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand.

So I wanted to specify the ms-help:// path of the help page as a command line argument to the viewer, CLVIEW.EXE.

C:\Program Files\Microsoft Office\Office12\CLVIEW.EXE

Does anybody know the command line syntax for this?

最满意答案

CLVIEW.EXE不支持命令行参数启动到某个页面。 它通常用于在托管的Office应用程序中启动您自己的自定义帮助文件。

使用Word 2007,有一些选项可用。 他们依赖,让我再说一遍,他们取决于您的帮助是在线还是离线模式。

如果您的目的只是让人们访问特定的Word帮助页面并且他们可以访问Internet,则可以在联机模式下从帮助文件中获取URL。 要执行此操作,只需右键单击要链接的页面,例如“将文本设置为粗体”页面,然后单击“属性”。 然后复制URL(地址),即http://office.microsoft.com/client/helppreview.aspx?AssetID=HA100215341033&ns=WINWORD&lcid=1033 。 这在FF中可以正常工作(如果你处于离线模式,这个链接就是这样的: ms-help://MS.WINWORD.12.1033/WINWORD/content/HA10021534.htm 。)

如果您是第一次将它们发送到Word,则可以运行一个提出此主题的宏。 通过右键单击页面获取“主题ID” 使文本加粗页面(在本例中为“HA10021534”)并将该ID作为第一个参数,如下所示。 注意 :这应该在在线和离线模式下都有效

Sub DisplayHelpTopic() Application.Assistance.ShowHelp "HA10021534", "" End Sub

对于使用#2解决方案的开发人员文档,如果处于脱机模式,则需要将范围设置为“DEV”(如果您处于在线模式,这也将起作用)。 因此,对于主题书目对象 ,主题ID是:HV10096617。 如果您处于在线模式,则不需要“DEV”范围。 码:

Sub DisplayHelpTopic() Application.Assistance.ShowHelp "HV10096617", "DEV" End Sub

CLVIEW.EXE doesn't support command line parameters to launch to a certain page. It's usually used to launch your own custom help file within the hosted Office application.

With Word 2007 there are some options available. They depend, let me repeat, they depend on whether your help is in online or offline mode.

If your intent is simply to get people to a specific Word help page and they have internet access, you can grab the URL from the help file in online mode. To do this, just right-click on the page you want the link, for example the Make the text bold page, to and click Properties. Then copy the URL (Address) which is: http://office.microsoft.com/client/helppreview.aspx?AssetID=HA100215341033&ns=WINWORD&lcid=1033. This will work just fine in FF (if you were in Offline mode, this same link would have been: ms-help://MS.WINWORD.12.1033/WINWORD/content/HA10021534.htm.)

If you are first sending them to Word, you can run an macro that brings up this topic. You grab the "Topic ID" from right-clicking on the page Make the text bold page (which, in this case is "HA10021534") and put that ID as the first parameter, like the below. NOTE: This should work in both online and offline mode.

Sub DisplayHelpTopic() Application.Assistance.ShowHelp "HA10021534", "" End Sub

For developer documentation with the solution for #2, if you are in offline mode, you need to set the scope to "DEV" (which will also work if you are in online mode). So for the subject Bibliography Object, the Topic ID is: HV10096617. If you are in online mode, you don't need the "DEV" scope. Code:

Sub DisplayHelpTopic() Application.Assistance.ShowHelp "HV10096617", "DEV" End Sub

更多推荐

本文发布于:2023-07-14 20:23:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1107173.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:超链接   页面   Word   hyperlink   pages

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!