Errata

Programming Applications for Microsoft® Office Outlook® 2007

Errata for Programming Applications for Microsoft® Office Outlook® 2007

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 165

Code sample incorrect
On page 165, the second code sample is incorrect.Change:private void AcceptTaskRequest()

{

string filter = "[MessageClass] = 'IPM.TaskRequest'";

Outlook.Items items =

Application.Session.GetDefaultFolder

(Outlook.OlDefaultFolders.olFolderInbox).

Items.Restrict(filter);

if (items.Count > 0)

{

Outlook.TaskRequestItem taskRequest =

(Outlook.TaskRequestItem)items[1];

Outlook.TaskItem task =

taskRequest.GetAssociatedTask(false);

task.Respond(

Outlook.OlTaskResponse.olTaskAccept, true, false);

task.Send();

}

}To:private void AcceptTaskRequest()

{

string filter = "[MessageClass] = 'IPM.TaskRequest'";

Outlook.Items items =

Application.Session.GetDefaultFolder

(Outlook.OlDefaultFolders.olFolderInbox).

Items.Restrict(filter);

if (items.Count > 0)

{

Outlook.TaskRequestItem taskRequest =

(Outlook.TaskRequestItem)items[1];

Outlook.TaskItem task =

taskRequest.GetAssociatedTask(false);

Outlook.TaskItem taskResponse = task.Respond(

Outlook.OlTaskResponse.olTaskAccept, true, false);

taskResponse.Send();

}

}

Microsoft Press is committed to providing informative and accurate

books. All comments and corrections listed above are ready for

inclusion in future printings of this book. If you have a later printing

of this book, it may already contain most or all of the above corrections.

Microsoft Press  Jul 13, 2010 
Printed
Page 156

Code sample incorrect On page 156, the second code sample is incorrect.Change:private void PromptUserMeetingRequest() { Outlook.Folder folder = Application.Session. GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) as Outlook.Folder; string filter = "[MessageClass] = " + "'IPM.Schedule.Meeting.Request'"; Outlook.Items items = folder.Items.Restrict(filter); foreach (Outlook.MeetingItem request in items) { Outlook.AppointmentItem appt = request.GetAssociatedAppointment(true); if (appt != null) { appt.Respond( Outlook.OlMeetingResponse.olMeetingAccepted, false, true); } } }To:private void PromptUserMeetingRequest() { Outlook.MeetingItem mtgResponse; Outlook.Folder folder = Application.Session. GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) as Outlook.Folder; string filter = "[MessageClass] = " + "'IPM.Schedule.Meeting.Request'"; Outlook.Items items = folder.Items.Restrict(filter); foreach (Outlook.MeetingItem request in items) { Outlook.AppointmentItem appt = request.GetAssociatedAppointment(true); if (appt != null) { mtgResponse = appt.Respond( Outlook.OlMeetingResponse.olMeetingAccepted, false, true); } } }

Microsoft Press  May 06, 2010