Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Delete outlook calendar appointment item permanently. (http://www.outlookbanter.com/outlook-vba/56182-delete-outlook-calendar-appointment-item.html)

[email protected] September 5th 07 11:20 AM

Delete outlook calendar appointment item permanently.
 
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.


Ken Slovak - [MVP - Outlook] September 5th 07 02:25 PM

Delete outlook calendar appointment item permanently.
 
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.



Seenu September 6th 07 06:28 AM

Delete outlook calendar appointment item permanently.
 
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.




Seenu September 6th 07 06:48 AM

Delete outlook calendar appointment item permanently.
 
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.




Ken Slovak - [MVP - Outlook] September 6th 07 05:17 PM

Delete outlook calendar appointment item permanently.
 
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.



Seenu September 7th 07 07:08 AM

Delete outlook calendar appointment item permanently.
 
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.




Seenu September 7th 07 10:54 AM

Delete outlook calendar appointment item permanently.
 
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.




Ken Slovak - [MVP - Outlook] September 7th 07 02:11 PM

Delete outlook calendar appointment item permanently.
 
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.




All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com