Problems with Appointment in SystemState

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

Hello,

I want to get the next appointment from calendar. I am using the SystemState
Class (CalendarNextAppointment) but I get a NullReferenceException if there
is no NextAppointment within 24h!?

Is there a way to look forward to the "real next appointment"?

thx
juvi
 
It will be null because the next probebly doesn't exist. I think by default
the current pointer is the current appointment so there is no next
appointment.

Try working with the Appointment class and outlooksession class direct to
give what you want. IE the following code gets a collection of all
appointments and writes the date and subject to the Output window using
tracing:-

OutlookSession session = new OutlookSession();
AppointmentFolder appointments = session.Appointments;

foreach (Appointment a in appointments.Items)
{
System.Diagnostics.Debug.WriteLine(string.Format("{0} {1}",
a.Start.ToShortDateString(), a.Subject));
}
 
Is it possible to intercept the appointment reminder, just like intercept
incoming text message. Desktop Outlook provides an event. What is it in
Pocket OUtlook?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top