A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Delete outlook calendar appointment item permanently.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 5th 07, 11:20 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 2
Default 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.

Ads
  #2  
Old September 5th 07, 02:25 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


  #3  
Old September 6th 07, 06:28 AM posted to microsoft.public.outlook.program_vba
Seenu
external usenet poster
 
Posts: 5
Default 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.



  #4  
Old September 6th 07, 06:48 AM posted to microsoft.public.outlook.program_vba
Seenu
external usenet poster
 
Posts: 5
Default 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.



  #5  
Old September 6th 07, 05:17 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


  #6  
Old September 7th 07, 07:08 AM posted to microsoft.public.outlook.program_vba
Seenu
external usenet poster
 
Posts: 5
Default 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.



  #7  
Old September 7th 07, 10:54 AM posted to microsoft.public.outlook.program_vba
Seenu
external usenet poster
 
Posts: 5
Default 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.



  #8  
Old September 7th 07, 02:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 04:31 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-2025 Outlook Banter.
The comments are property of their posters.