> Outlook really likes to hold on to the appointment items...
> In case of (c), why not work with the master appointment (returns by
> AppointmentItem.Parent) if AppointmentItem.RecurrenceState =
> olApptOccurrence/olApptException?
>
> --
> Dmitry Streblechenko (MVP)
>
http://www.dimastr.com/> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "OutlookWiz" <OutlookWiz[ at ]discussions.microsoft.com> wrote in message
> news:8839A665-0A2B-41BF-8E58-6924D809AC17[ at ]microsoft.com...
> >I am creating an addin using C# and want to convert existing appointment
> >item
> > to use my custom form once the button in the ribbon is clicked. (the
> > active
> > inspector)
> >
> > I have tried different solutions but not fully succeeded
> >
> > a) Changing the message class and then call save . This is not working
> > form
> > still pointin to IPM.Appointment
> >
> > b) Changing the Message Class then close the item and gets the item from
> > the
> > seesion by its entryID. This is not working as well and when I opened the
> > appointment then it still using the IPM.Appointment class instead of my
> > custom class. Although when I am debugging the item its message clase is
> > changed to custom message class but on calendar display its still using
> > the
> > IPM.Appointment.
> >
> > c) Deleting the current Item and creating the New Item using Items.Add
> > method and specifying the custom message class and then copying the old
> > Appointment Item to the new Item. This is working in case of single items
> > but
> > in case of Recurring Items this technique fails and also I will loose
> > tracking and other information.
> >
> > This is only happening Outlook 2007. it is only happening on Appointment
> > Items. it seems that Outlook 2007 is not releasing some object to refresh
> > the
> > item to use the new message class. We have been using DC.collect,
> > DC.WaitForPendingFinalizers and GC.CollectObject etc etc buyt top no
> > avial.
> >
> > Has any body got a reliable fool proof way of changing the message class
> > of
> > the item whilst the item is open and having the inspector load the item
> > inside the custom form
> >
> > Please let me know.
> >
> > Many thanks
>
>
>