C
csdev
I am writing an Outlook addin using Visual Basic and CDO. I am trying to
catch the write event for an appointment item, redirect the write to do some
processing of my own, and then close the appointmentItem window without
saving the changes. However, after closing the item using the call
objAppointmentItem.Close(olDiscard), I get a pop-up error in outlook that
says "Could not complete the operation. One or more parameter values are not
valid." The window does successfully close without saving the changes. If I
click OK, everything continues to work with no more errors. Also, I am able
to catch the write events of other types of items (mailItems, taskItems, etc)
and close them with no problems. Is there something I should be doing
different for appointmentItems?
Thanks!
catch the write event for an appointment item, redirect the write to do some
processing of my own, and then close the appointmentItem window without
saving the changes. However, after closing the item using the call
objAppointmentItem.Close(olDiscard), I get a pop-up error in outlook that
says "Could not complete the operation. One or more parameter values are not
valid." The window does successfully close without saving the changes. If I
click OK, everything continues to work with no more errors. Also, I am able
to catch the write events of other types of items (mailItems, taskItems, etc)
and close them with no problems. Is there something I should be doing
different for appointmentItems?
Thanks!