Outlook2010 - 当ItemChange事件触发时,RecurrencePattern不会更新。 [英] Outlook2010 - RecurrencePattern does not update when ItemChange Event fired.

查看:81
本文介绍了Outlook2010 - 当ItemChange事件触发时,RecurrencePattern不会更新。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个小型测试项目..你可以从这里下载http://www.nexez.net/download/MyAddin2010.zip


 


加载项目


- 输入共享加载项


- 使用.NET Framework 3.0


- 使用Microsoft.Office.Interop.Outlook(版本11)


 


我使用Outlook Interop版本11的原因,因为我想在Microsoft Office 2003,2007,2010下部署此加载项


 


当前问题:(仅存在于Microsoft Outlook 2010中)


 


查看问题。


1)创建重复约会(每周或每月等)


2)删除属于创建的重复的约会。


 


当ItemChange事件被解雇时..实际上(在Outlook 2003和2007下)我可以获得一个被删除的例外项目。


但在MS Outlook 2010下.. 我将只获得0个已删除的项目。


请参阅代码TestClass.cs:第41行。 excs.Count 将始终由Outlook 2010返回0(零)


 


问题:为什么......?我做错了什么?


 


谢谢。

解决方案

亲爱的Sittichai,


尝试重新安装VSTO运行时: http://www.softpedia.com/get/Programming/Other-Programming-Files/Visual-Studio-Tools-for-Office.shtml  ,
我认为您的运行时可能有问题。


此外,请参阅此主题可以帮助您: http://www.eggheadcafe.com/software/aspnet/34131134/itemremove-event- not-fire-when-delete-recurring-appointment.aspx


希望这会有所帮助。


问候,


I 've created a small Test Project .. you can download it from here http://www.nexez.net/download/MyAddin2010.zip

 

Add-In Project

- Type Shared Add-In

- use .NET Framework 3.0

- use Microsoft.Office.Interop.Outlook (Version 11)

 

The Reason that i use Outlook Interop Version 11, becase i want to deploy this Add-in under Microsoft Office 2003, 2007, 2010

 

Current Problem: (exists only in Microsoft Outlook 2010)

 

To see the Problem.

1) Create a Recurrence Appointment (weekly or monthly etc.)

2) Delete an Appointment that belong to the created Recurrence.

 

When the ItemChange Event fired .. actually (under Outlook 2003 and 2007) I can get an Exceptions Items, that was deleted.

But under MS Outlook 2010..  I will get only 0 deleted Item.

Please see code TestClass.cs: Line 41. The excs.Count will always return 0 (zero) by Outlook 2010

 

Question: Why..? What do i do wrong?

 

Thank you.

解决方案

Dear Sittichai,

Try to reinstall the VSTO runtime on your side:http://www.softpedia.com/get/Programming/Other-Programming-Files/Visual-Studio-Tools-for-Office.shtml , I think there may be something wrong with your runtime.

In addition, see this thread can help you:http://www.eggheadcafe.com/software/aspnet/34131134/itemremove-event-not-fire-when-delete-recurring-appointment.aspx

Hope this helps.

Regards,


这篇关于Outlook2010 - 当ItemChange事件触发时,RecurrencePattern不会更新。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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