Can I use Door to read the calendar?

bizzvans

New Member
Licensed User
Can anyone help me use Door to read the calendar?

:sign0085:Reading the calendar using PimCollection is simple: but as previously mentioned here, there is no way to tell when a 'recurring' appointment occurs and recurrs.
There are posts here back in 2007 with replys saying it cannot be done:
932-how-find-recurring-appointments
Sadly without the recurring entries, my project dies - I can't display just 'some' of the calendar.

My (newbie) understanding is that 'door' gives more direct access to the underlying libraries etc. I see in post 2324-outlook-set-sensitivity-level example code using door to set an appointment property.

So is there a way to use 'door' to read the calendar, and therefore get access to the properties of a recurring appointment?
 
Last edited:

agraham

Expert
Licensed User
Longtime User
It should be possible to use the Value property to get the underlying Appointment object and then play with its AppointmentRecurrence object but you will need to be happy to play with .NET objects.

For example (note that I haven't actually tested this).

Obj1.New1(False)
Obj1.New2(False)
...
Obj1.Value = SomeAppointment.Value ' the appointment object
Obj1.Value = Obj1.GetProperty("RecurrencePattern") ' its AppointmentRecurrence
Obj2.Value = Obj1.GetProperty("RecurrenceType")
MsgBox(Obj2.RunMethod("ToString"))

The AppointmentRecurrence object documentation is here AppointmentRecurrence Members (Microsoft.WindowsMobile.PocketOutlook)
 

bizzvans

New Member
Licensed User
Hi agraham, thanks for the reply, this looks very interesting.

But: please tell me somewhere I can read to find out the background I will need: as you say, I need to be happy to play with .NET objects.

I only want to read the calendar - I have no need to update anything. Can you point at any sample code that shows how to get connected and read through the calendar using these calls?

Many thanks for your help.
 

agraham

Expert
Licensed User
Longtime User
But: please tell me somewhere I can read to find out the background I will need
Just Google for .NET and/or C# and start reading. Try Wikipedia on .NET to start with.

Can you point at any sample code that shows how to get connected and read through the calendar using these calls?
I'm afraid I can't. To use the Door library you are pretty much on your own. It's really a C# developer facility to solve small problems for Basic4ppc programmers. It's not meant for general use.
 
Top