Microsoft Office Tutorials and References
In Depth Information
Working with meetings
// Selected appointment's recurrence information
Outlook.RecurrencePattern PacktRecPattern = PacktAppointmentItem.
// Loading the appointment to AppointmentItem Object
Outlook.AppointmentItem PacktAppointmentDelete = PacktRecPattern.
GetOccurrence(new DateTime(2008, 9, 28, 8, 0, 0));
// Now delete using the Delete method
Working with meetings
Meetings are generally discussions amongst more than two people, during which
predetermined topics are discussed. Meetings help you prepare a plan, or finalize
pending work, or perform other tasks involving colleagues. In Microsoft Office
Outlook, a meeting is a scheduled appointment—that is, people are invited to attend.
You can set the meeting time and other options for the meeting attendees, to process
the invitation.
VSTO 3.0 supports the dynamic creation of meeting items for Office. Let's
create a meeting invitation dynamically, by using the VSTO object model and
C# programming.
Open Visual Studio 2008 and create a new solution, as explained earlier. Write the
following code, which will dynamically create a meeting invite item, inside the
ThisAddIn.cs file:
private void ThisAddIn_Startup(object sender, System.EventArgs e)
// Outlook PacktMeetingItem object to compose new meeting request
Outlook.AppointmentItem PacktMeetingItem = (Outlook.
PacktMeetingItem.MeetingStatus = Microsoft.Office.
// Set the subject for the meeting
PacktMeetingItem.Subject = "Changes in book content";
// Update the body information of the meeting
PacktMeetingItem.Body = "Work on the changes and update";
// Start Expiry Time of the meeting
PacktMeetingItem.Start = new DateTime(2008, 9, 28, 9, 0, 0);
Search JabSto ::

Custom Search