![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am developing an application using C#.net shared add-in.
It is intended to delete outlook appointment items permanently. I am using _AppointmentItem object to delete the appointment from the calendar. while i am doing this the deleted appointment item is moved to the Deleted items folder. But i want to delete the appointment item permanently ie it should not be moved to the deleted item folder instead it must be deleted permanently. |
Ads |
#2
|
|||
|
|||
![]()
Trap ItemAdd on the Items collection of the Deleted Items folder and when
that fires delete the item from there. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ps.com... I am developing an application using C#.net shared add-in. It is intended to delete outlook appointment items permanently. I am using _AppointmentItem object to delete the appointment from the calendar. while i am doing this the deleted appointment item is moved to the Deleted items folder. But i want to delete the appointment item permanently ie it should not be moved to the deleted item folder instead it must be deleted permanently. |
#3
|
|||
|
|||
![]()
Hey thanks,
i am trying that. But still i would like to know if there is any way to delete the appointment items directly from the folder with out moving it. and if so-- Can you tell me which object to use, for this kind of deletion. Thanks in advance SrinivasanPrabakaran. "Ken Slovak - [MVP - Outlook]" wrote: Trap ItemAdd on the Items collection of the Deleted Items folder and when that fires delete the item from there. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ps.com... I am developing an application using C#.net shared add-in. It is intended to delete outlook appointment items permanently. I am using _AppointmentItem object to delete the appointment from the calendar. while i am doing this the deleted appointment item is moved to the Deleted items folder. But i want to delete the appointment item permanently ie it should not be moved to the deleted item folder instead it must be deleted permanently. |
#4
|
|||
|
|||
![]()
Hey Ken,
In the last post i told you what can be done. The real requirement is to delete an appointment item with out firing the delete event. Can it be done ? if so, how? if not, why? Thanks in advance, SrinivasanPrabakaran. "Ken Slovak - [MVP - Outlook]" wrote: Trap ItemAdd on the Items collection of the Deleted Items folder and when that fires delete the item from there. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ps.com... I am developing an application using C#.net shared add-in. It is intended to delete outlook appointment items permanently. I am using _AppointmentItem object to delete the appointment from the calendar. while i am doing this the deleted appointment item is moved to the Deleted items folder. But i want to delete the appointment item permanently ie it should not be moved to the deleted item folder instead it must be deleted permanently. |
#5
|
|||
|
|||
![]()
You can hard delete an item to avoid the Deleted Items folder (like
Shift+Delete in the UI), but not with the Outlook object model. You need to use a different API if you want to do that. Some API's that can be used for that are CDO 1.21 or Extended MAPI (not supported for managed code and Extended MAPI is C++ or Delphi code only) or a 3rd party library such as Redemption (www.dimastr.com/redemption). I use Redemption for things like that myself. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Seenu" wrote in message ... Hey Ken, In the last post i told you what can be done. The real requirement is to delete an appointment item with out firing the delete event. Can it be done ? if so, how? if not, why? Thanks in advance, SrinivasanPrabakaran. |
#6
|
|||
|
|||
![]()
Thanks Ken,
thats really nice of you. SrinivasanPrabakaran "Ken Slovak - [MVP - Outlook]" wrote: You can hard delete an item to avoid the Deleted Items folder (like Shift+Delete in the UI), but not with the Outlook object model. You need to use a different API if you want to do that. Some API's that can be used for that are CDO 1.21 or Extended MAPI (not supported for managed code and Extended MAPI is C++ or Delphi code only) or a 3rd party library such as Redemption (www.dimastr.com/redemption). I use Redemption for things like that myself. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Seenu" wrote in message ... Hey Ken, In the last post i told you what can be done. The real requirement is to delete an appointment item with out firing the delete event. Can it be done ? if so, how? if not, why? Thanks in advance, SrinivasanPrabakaran. |
#7
|
|||
|
|||
![]()
hye Ken,
I got Redemption now. can you tell which object to use for deleting that item. Thanks in advance, SrinivasanPrabakaran. "Seenu" wrote: Thanks Ken, thats really nice of you. SrinivasanPrabakaran "Ken Slovak - [MVP - Outlook]" wrote: You can hard delete an item to avoid the Deleted Items folder (like Shift+Delete in the UI), but not with the Outlook object model. You need to use a different API if you want to do that. Some API's that can be used for that are CDO 1.21 or Extended MAPI (not supported for managed code and Extended MAPI is C++ or Delphi code only) or a 3rd party library such as Redemption (www.dimastr.com/redemption). I use Redemption for things like that myself. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Seenu" wrote in message ... Hey Ken, In the last post i told you what can be done. The real requirement is to delete an appointment item with out firing the delete event. Can it be done ? if so, how? if not, why? Thanks in advance, SrinivasanPrabakaran. |
#8
|
|||
|
|||
![]()
There are a few ways to do it. One is to use the SafeMailItem object:
Redemption.SafeMailItem oMail = new Redemption.SafeMailItem; oMail.Item = myItem; // myItem is the Outlook item oMail.Delete(missing); -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Seenu" wrote in message ... hye Ken, I got Redemption now. can you tell which object to use for deleting that item. Thanks in advance, SrinivasanPrabakaran. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete outlook calendar appoinment item permanently. | [email protected] | Outlook and VBA | 1 | September 5th 07 07:03 PM |
Delete message permanently. | Andy | Outlook Express | 14 | June 9th 07 06:41 PM |
Permanently delete a calendar | Stakkalee | Outlook - Calandaring | 0 | February 20th 07 03:50 PM |
can't delete item from calendar ?? | kabucek | Outlook - General Queries | 0 | September 21st 06 07:59 PM |
Outlook VSTO Appointment Item Delete Event | lg | Add-ins for Outlook | 0 | July 31st 06 10:35 AM |