Send method clears Body of appointment

S

Steve*n

I've created a Seperate FormRegion for Appointments and within that form
region there is a button that has the following definition.
Outlook.AppointmentItem appt = (Outlook.AppointmentItem)this.OutlookItem;

appt.Body = CreateBody();

((Outlook._AppointmentItem)appt).Save();

((Outlook._AppointmentItem)appt).Send();



The Body of the appointment disappears under common circumstances.

If I comment out the Send() and just Save() the body will stay, even if I
close the appt and open it back up.

If I leave the Send() in then the Body will be deleted when I open the appt
back up again.

If I have two buttons, one for Save and one for Send() and I click the
Save() button first and then the Send() button the body will disappear.

However, if I click the Save() button within the custom Form Region and then
go back to the Body of the Appointment and then switch back to my Form
Region and click Send() the body will remain.

It's almost as if the Body doesn't get updated unless the Body section of
the Appointment is viewed before Sending it.

Any ideas? I've tried multiple combinations and am up to trying more if you
have an idea.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top