J
Jason James
Hi,
I am develing an app that is to create a series of appointments from a
list of tasks in a MS Project file. The Project Object Model is not
giving me any problems. I feel that the Outlook Object Model is...
When I run my program I can create a new appointment, but as the
creator of the appointment I assume the convenor role of the meeting.
If the meeting time needs to be changed then a request for a different
appointment time comes to me. However, I would prefer a single
(special) user to be the owner (convenor) of the appointment and any
change requests should go to that user. I then intend to have the
special user share their calendar so that it can be viewed and
potentially edited by several other editors of that shared calendar.
My question then is how (without loging in as this special user) do I
using C# to create a new appointment in the special persons calendar
without making myself the originator of the meeting?
Greatfully yours,
Jason.
Please find my sample function below:
using outlook = Microsoft.Office.Interop.Outlook;
outlook.AppointmentItem mtg =
(outlook.AppointmentItem)outApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
mtg.MeetingStatus =
Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
mtg.Location = "Meeting Room";
outlook.Recipient rec = mtg.Recipients.Add("James,
Jason");
rec.Type = (int)outlook.OlMeetingRecipientType.olRequired;
mtg.Subject ="Test meeting";
mtg.Start = new DateTime(2007, 9, 19, 15, 0, 0);
mtg.Duration = 60;
mtg.Body = "This is just a test meeting from C#";
mtg.ReminderMinutesBeforeStart = 60;
mtg.ReminderSet = true;
((outlook._AppointmentItem)mtg).Send();
I am develing an app that is to create a series of appointments from a
list of tasks in a MS Project file. The Project Object Model is not
giving me any problems. I feel that the Outlook Object Model is...
When I run my program I can create a new appointment, but as the
creator of the appointment I assume the convenor role of the meeting.
If the meeting time needs to be changed then a request for a different
appointment time comes to me. However, I would prefer a single
(special) user to be the owner (convenor) of the appointment and any
change requests should go to that user. I then intend to have the
special user share their calendar so that it can be viewed and
potentially edited by several other editors of that shared calendar.
My question then is how (without loging in as this special user) do I
using C# to create a new appointment in the special persons calendar
without making myself the originator of the meeting?
Greatfully yours,
Jason.
Please find my sample function below:
using outlook = Microsoft.Office.Interop.Outlook;
outlook.AppointmentItem mtg =
(outlook.AppointmentItem)outApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
mtg.MeetingStatus =
Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
mtg.Location = "Meeting Room";
outlook.Recipient rec = mtg.Recipients.Add("James,
Jason");
rec.Type = (int)outlook.OlMeetingRecipientType.olRequired;
mtg.Subject ="Test meeting";
mtg.Start = new DateTime(2007, 9, 19, 15, 0, 0);
mtg.Duration = 60;
mtg.Body = "This is just a test meeting from C#";
mtg.ReminderMinutesBeforeStart = 60;
mtg.ReminderSet = true;
((outlook._AppointmentItem)mtg).Send();