Darrin Edwards
Guest
|
Hi guys,
I am attempting to create an appointment from a VSTO ...
I have a custom dialog for entering the requisite data for the appointment which pulls information in from a database - when the ok button in the custom dialog is pressed, a procedure executes filling in information and then saves the appointment item ... similar to the following ....
private void CreateAppointmentUsingCreateItem()
{
Outlook.AppointmentItem appItem = OutlookApp.CreateItem(
Outlook.OlItemType.olAppointmentItem) as Outlook.AppointmentItem;
if (appItem != null)
{
// insert item details - start end etc
// ...
//
appItem.Save();
//appItem.Display(true);
Marshal.ReleaseComObject(appItem);
}
}
But, the dialog still shows.
How can I avoid the dialog showing ?
MTIA
Darrin |
|
Dmitry Kostochko
Add-in Express team
Posts: 2875
Joined: 2004-04-05
|
|