更新时间:2023-02-13 13:06:41
亲爱的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,