问题标签 [outlook-2007-addin]

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 回答
940 浏览

outlook - 如何使用 VSTO 将 flash 对象添加到 Outlook 的自定义任务窗格中?

您能否告诉我如何使用 VSTO 将 flash 对象添加到自定义任务窗格中?

0 投票
2 回答
1270 浏览

deployment - 如何防止非管理员用户禁用 Outlook 2007Addin?

根据 Office 2007 系统的 MSDN 文档,office 插件在 HKCU 下注册,而不是在 HKLM 下。我有一个也在 HKCU 下注册的 Outlook 2007 插件。

但问题是,即使是非管理员用户也可以禁用插件,因为它在 HKCU 中。但是使用 Outlook2003 插件这是不可能的,因为它已在 HKLM 中注册。

我还看到一些在 HKLM 下注册的 Outlook 2007 插件,例如 Microsoft VBA for Outlook Addin、Microsoft Outlook Mobile 服务。

当非管理员用户尝试禁用它时,outlook 会弹出一条消息,指出这些插件已在 HKLM 中注册,用户无权禁用它。

那么我怎样才能像这样在 HKLM 下注册我的 Outlook 2007 插件呢?

0 投票
1 回答
281 浏览

outlook - 是否可以以编程方式从 Outlook 或 OutlookExpress 中删除电子邮件?

我想知道是否可以创建一个 COM 组件来监控电子邮件进入 Outlook 2007?我的意思是我只想开发一种插件类型的组件,当加载到 Outlook 时应该监控电子邮件。从某种意义上说,监控电子邮件,是否可以注意到来自电子邮件?并执行一些操作,例如删除该电子邮件?

任何人都可以让我知道我需要使用的接口吗?考虑任何像 c#,vc++ 这样的东西,我们可以在其中开发一个 COM 组件

任何帮助表示赞赏。

提前致谢。

0 投票
2 回答
2684 浏览

c# - 以编程方式展开/折叠 Outlook 导航窗格中的文件夹

我正在使用 C# 为 Outlook 编写加载项。有没有办法以编程方式展开和折叠 Outlook 2007 文件夹导航窗格中的文件夹?另外,展开文件夹时是否会触发事件?

0 投票
2 回答
1914 浏览

c# - How to get the sending email address from outlook 2007

I am working on outlook add-in project using Visual studio 2008 for MS Outlook 2007 in C#. Here I am explaining my problem...

I got multiple accounts (3 Accounts) with my outlook 2007. I need to get accounts form Account box in New Mail Message window. When we click New Mail Message, a new window will appear from which we can send a new mail. Here (On this window) we can see Account Dropdown (Left side) under the Send Button. If we have multiple accounts with outlook, we can see all the accounts in Account Drop Down if we click on Account Box. If we click on the particular email, a right mark will appear to that Email Account and a message can bee seen on the top of the Send button is "This message will be sent via xyz@gmail.com".

So, I want to get these email accounts into a string and that particular email account (which has right mark) into another string. I got these 3 email accounts into a string. But, I am not getting the particular email account(which has the right mark when we send a new email).

I am using this code....

I am able to get all the accounts from the above code..But, I just want to get the email address which we will use for sending an email at that particular moment..

0 投票
1 回答
1255 浏览

outlook-addin - Outlook 2007 加载项异常处理

我有一个我最近继承的 Outlook 2007 加载项,目前在生产中存在一个问题,即某些用户会定期禁用他们的加载项,而且似乎是随机的。外接程序没有日志,并且在每个方法/事件调用到外接程序代码时都有 try/catch(和吃)块。我做了一些谷歌搜索,发现如果有未处理的异常抛出到 Outlook,Outlook 会“软禁用”加载项。

据我所知,加载项没有抛出异常。我想做的是 1) 在插件中创建某种全局异常处理程序,以 100% 确保所有异常都被捕获。或 2) 以某种方式侦听 Outlook“禁用”注册表中的加载项并让此侦听器删除 Outlook 正在设置的 reg 键。

我试图通过以下方式做#1:

p>

但都没有成功。

我意识到 System.Windows.Forms.Application.ThreadException 不一定适用于 Outlook 加载项,但我想为什么不尝试一下。

另外,我读到 Outlook 为加载项启动了一个单独的 AppDomain,所以我希望 AppDomain.CurrentDomain 可以为此工作。我编写了一些故意抛出异常的代码来测试并且无法进入这些事件中的任何一个,并且 Outlook 继续禁用加载项。

任何帮助/见解将不胜感激。

0 投票
2 回答
1761 浏览

c# - VSTO - Outlook 2007 如何在 Outlook 窗口中显示表单?

我在 Outlook 2007 中使用 VSTO,当用户单击特定工具栏按钮时,我需要在 Outlook 的主窗口中显示一个表单(或用户控件),也就是说,我需要它出现在与阅读窗格出现而不是在窗口中自行打开。这可能吗?

感谢您的时间。

0 投票
1 回答
696 浏览

c# - VSTO - Outlook 2007 如何显示用户属性,即使它不存在?

我在邮件文件夹中添加了用户属性,我们称之为 UserProperty01。一些文件夹项目具有此属性,有些则没有。如果该属性已设置,我需要在文件夹的视图中显示,因此我添加了另一个名为 UserProperty01Present 的属性,并在设置原始属性时将其设置为 true,在删除时将其设置为 false;然后我将它添加到文件夹的视图中。

问题是,在设置了属性的邮件中,小复选框显示为选中状态,在属性被删除的邮件中显示为空白......而在那些从未设置过属性的邮件中根本没有。

我的问题是,有没有办法在未设置属性时显示空白复选框?到目前为止,我发现的唯一替代方法是查看每个邮件项并将其设置为 false,如果每次打开文件夹时都没有设置它;不用说,我对这个解决方案不太满意(那里可能有 800 多封邮件)。还有其他方法吗?

感谢您的时间。

0 投票
1 回答
289 浏览

c# - VSTO - Outlook 2007 如何更改文件夹视图中 YesNo 列的图标?

我在文件夹中有一个 YesNo 列,并将其添加到文件夹视图中;它显示为选中或未选中的复选框。我被要求用绿色或红色圆圈替换它。这可能吗?

感谢您的时间。

0 投票
1 回答
547 浏览

c# - C# - AddStore 在 Outlook 中无法正常工作

我整个早上都在尝试这个(VS2K10、OL2K7、.NET 3.5),我的 PST 从未附加。我已经修改了路径以包含转义的斜杠,没有骰子。我偶尔会看到 PST 被添加然后消失,当我点击我正在尝试编程的命令栏按钮时。

这是我的代码片段:

PSTWithPath 是我创建的自定义类,如下所示:

公共类 PSTWithPath { 公共字符串名称;公共字符串路径;公共 Outlook.MAPIFolder 映射文件夹;

建议将不胜感激。

谢谢,拉里