问题标签 [office-addins]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
278 浏览

visual-studio-2010 - 在 Visual Studio 2010 中使用 Outlook 加载项 for 2003

我们在 Visual Studio 2008 中创建了 Outlook 加载项 2003。我们刚刚迁移到 Visual Studio 2010。当我们调试项目时,它显示未安装所需版本的 Office。

有没有办法在 Visual Studio 2010 中使用 Outlook 2003 加载项?

我需要在 2003-2010 的所有版本的 Outlook 中使用我的加载项,并且我只能使用 Visual Studio 2010。

0 投票
1 回答
2044 浏览

c# - 按发件人姓名获取 Outlook 邮件计数

我正在用 C# 开发 Outlook 2007 插件,我需要在其中计算特定发件人发送的 oif 邮件的数量?

例如,A 人发送了 5 封邮件,B 人发送了 10 封邮件,C 人发送了 15 封邮件。我怎样才能得到每个成员的这个计数?

我也可以使用 a 编写我自己的逻辑Dictionary<String, Int32>,但是当这个发件人列表变大时,这将是一个巨大的性能损失。是否有任何预定义的属性?

提前致谢。

0 投票
6 回答
52123 浏览

icons - “Office 2010 加载项:图标库” - 如何从后台选项卡中提取图标 (docx)

我下载了“ Office 2010 加载项:图标库”,这是一个 docx 文件,其中包含两个包含图标的后台选项卡。

如何提取图标或在我的应用程序中使用它们?

0 投票
1 回答
1005 浏览

c# - Office 2010 插件开发 - 我可以从代码隐藏中读取用户正在使用的主题吗?

PowerPoint 2010 附带三个默认主题,银色、黑色和蓝色。是否可以从代码隐藏中检查用户当前正在使用的主题?

0 投票
2 回答
1231 浏览

c# - 用户选择电子邮件时如何在收件箱窗格上获取鼠标单击事件

我正在使用 C# 为 Office 2007 创建一个插件。每当用户单击收件箱窗格中电子邮件列表中的电子邮件时,此插件负责在新窗格中显示电子邮件标题信息。现在我不确定当用户选择电子邮件并阅读该电子邮件标题信息时如何在收件箱窗格上获得鼠标单击事件。任何有用的指针?

0 投票
1 回答
1042 浏览

c# - 是否可以在 Word 中向 CommandBar["Text"] 添加编辑框或组合框?

当我的 Word 加载项加载时,我正在尝试将编辑框或组合框添加到上下文菜单之一。但我没有成功,也没有收到任何错误,编辑/组合框只是没有出现。

上面的代码在 Word 中的右键单击上下文菜单中添加了一个菜单,称为“我的菜单”,然后我尝试向该菜单添加一个组合框,它没有显示。代码在我的加载项启动函数中。

有没有人有这方面的经验?有可能吗?还是我只是在做完全错误的事情?



更新

我想在某处有一些关于此的文档。但我似乎无法找到它。这是我找到的文档:http:
//msdn.microsoft.com/en-us/library/aa190799
(v=office.10).aspx ,通过阅读,我得到的印象应该是可能的添加 CommandBarPopup、CommandBarComboBox 和 CommandBarButton。

0 投票
1 回答
4805 浏览

.net - 部署 Office 2010 插件

我创建了两个插件,一个是共享插件(用于 Excel、Word 和 Outlook),另一个是用于 Outlook。

它们在我的机器(我开发它的地方)上运行良好。

使用的框架:4.0

我按照Deploying an Office Solution by Using Windows Installer中的步骤通过 VS2010 创建了一个“设置项目” 。

当我运行它的设置时,共享插件运行良好。但是outlook插件不起作用。

这是“事件查看器”的日志

p>

据我了解,它甚至没有考虑使用框架 4.0 加载插件

谁能告诉我哪里做错了并提出解决方案。

谢谢

阿达什

0 投票
1 回答
123 浏览

c# - 将 BLOB 存储在 Docx 中

如何使用 C#/.NET(带有适用于 Office 2007/2010 的 Office 插件)在 Docx(保存时)中存储任意附加信息?

0 投票
2 回答
1100 浏览

c# - 如何检查 Word 2007 是否调用自动保存到 word 插件?

我在 DocumentBeforeSave 事件处理程序中有一些功能。
只有当用户手动调用保存(按保存按钮)时,这才应该起作用。
但是 word 2007 具有自动保存功能,并且每次自动保存工作时都会引发 DocumentBeforeSave 事件。如何检查是否通过自动保存或用户手动调用保存调用了保存?

0 投票
0 回答
432 浏览

com - OneNote COM Addin only loads manually

I have been working on a COM add-in for OneNote based on the tutorial at http://www.malteahrens.com/#/blog/howto-onenote-dev/ and http://support.microsoft.com/kb/2555352. It builds fine, however, when I load OneNote, I have to manually go through to options to start the add in. It tells me a "runtime error occurred during the loading of the COM add-in." Once the add-in is loaded manually it works as it should. I've been searching around on the internet for a while without much luck.

I have tried looking at Fusion logs, but can't make any sense of the errors:

LOG: Download of application configuration file was attempted from file:///C:/Windows/SysWOW64/DllHost.exe.config. LOG: Configuration file C:\Windows\SysWOW64\DllHost.exe.config does not exist. LOG: No application configuration file found. LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn.DLL. LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn/CSOneNoteRibbonAddIn.DLL. LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn.EXE. LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn/CSOneNoteRibbonAddIn.EXE.

I have also tried try catch blocks with logging with no luck. I am using VS 2010 Pro. Thanks.