Accessing Outlook Appointment

Add-in Express™ Support Service
That's what is more important than anything else

Accessing Outlook Appointment
 
Max Ottavini




Posts: 2
Joined: 2007-10-05
I'm trying to read the details of the selected appointment using

private void DoClick(object sender)
{
Outlook.Explorer _explorer = OutlookApp.Explorers.Application.ActiveExplorer();



Outlook.AppointmentItem item = _explorer.Selection as Outlook.AppointmentItem;
MessageBox.Show(item.Duration.ToString());

Not having any luck, what is the correct way of accessing the select appointment?

Posted 05 Oct, 2007 13:37:31 Top
Max Ottavini




Posts: 2
Joined: 2007-10-05
Problem resolved.

TX
Posted 05 Oct, 2007 17:46:39 Top