Office 加载项未显示在菜单中
我遇到与 Office 2007 和 VSTO 加载项有关的问题。
描述:
Windows XP SP3 x86
MS Office 2007 x86(企业版)
VSTO 加载项(Word、Excel)
菜单中未显示我的 VSTO 加载项。
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\MyAddin
LoadBehavior = 3
在“加载项”选项卡(“文件”->“选项”)中,我可以看到我的加载项处于活动状态。没有任何例外。
我可以按以下顺序重现此问题:
1.安装MS Office;
2.安装插件
- .net框架2.0已安装;
- 加载项已安装。
但是,如果在安装 Office 之前已经安装了 .net 框架,加载项就能正常工作。
- 安装.net Framework 2.0;
- 安装 MS Office
- 安装插件
---->加载项工作正常...
在 Windows 7 x86 (Office 2010 x86) 上,加载项工作正常。也许是因为Windows 7已经包含.net框架。
我无法解决这个问题...也许你可以帮助我。
先感谢您!
I have a problem connected with Office 2007 and VSTO add-in.
Description:
Windows XP SP3 x86
MS Office 2007 x86 (Enterprise edition)
VSTO add-in (Word, Excel)
My VSTO add-in is not shown in the menu.
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\MyAddin
LoadBehavior = 3
In Add-Ins tab (File->Options) I can see that my add-in is active. There are no any exceptions.
I can reproduce this issue in the following order:
1. install MS Office;
2. install add-in
- .net framework 2.0 is installed;
- add-in is installed.
But if .net framework had already been installed before I installed the Office -- add-in works in the right way.
- install .net framework 2.0;
- install MS Office
- install add-in
----> add-in works properly...
On Windows 7 x86 (Office 2010 x86) add-in works. Maybe because Windows 7 already contains .net framework.
I can't resolve this issue... Maybe you can help me.
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,您缺少 VSTO 运行时文件。如果是这样,那么您可以在此处下载这些内容,
以了解哪些内容问题是您需要设置一个环境变量 VSTO_SUPPRESSDISPLAYALERTS=0 请参见 MSDN 上的此文档,然后是最后一个“使用日志文件和错误消息对加载项进行故障排除”段落
It looks to me that you are missing the VSTO runtime files. If so then you can download those here
In order to see what the problem is you need to set an environment variable VSTO_SUPPRESSDISPLAYALERTS=0 See this document on MSDN and then specifically the last paragraph "Troubleshooting Add-ins Using a Log File and Error Messages"
我已经找到了这个问题的原因。我已在最终用户系统上安装了 Office 2007 的主互操作程序集,并且我的加载项现在可以运行。
1) 问题说明:
“计算机必须安装某个版本的 .NET Framework(版本 1.1、2.0、3.0 或3.5) 在 PIA 安装程序运行之前,Windows XP 不包含任何版本的 .NET Framework,除非从 Windows Update 下载 .NET 1.1 时,Windows Vista 包含一个版本的 .NET Framework。检测到 .NET Framework 安装并自动安装 PIA。”
2) 添加 Office PIA 作为先决条件
也许这对某人有用。
I have found cause of this issue. I have installed Primary Interop Assemblies for Office 2007 on end user system and my add-in works now.
1) Issue explanation:
"The computer must have a version of the .NET Framework installed (version 1.1, 2.0, 3.0, or 3.5) before the PIA installer is run. Windows XP does not include any version of the .NET Framework unless .NET 1.1 was downloaded from Windows Update. Windows Vista does include a version of the .NET Framework. When Microsoft Office is first installed, the .NET Framework installation is detected and the PIAs are automatically installed."
2) Adding the Office PIAs as a prerequisite
Maybe it will be useful for somebody.