View Single Post
  #2  
Old February 18th 09, 02:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Addin Appointment several Questions

1. Michael's article is correct about the registry setting of course, but
that won't do you much good if the recipients are using Outlook 2007 also.
The default setup for Outlook 2007 includes a rule on incoming items to
strip out any categories. So on receipt the categories most likely will be
stripped out even if you send with the categories.

2. You can make a custom form derived from IPM.Appointment, such as
IPM.Appointment.Fubar. Unless you are using Extended MAPI and create a MAPI
form (C++ or Delphi only, no managed code) you cannot create your own
MessageClass. Any item however can have one or more UserProperty's added to
it. Whether they would survive being sent and received is another matter
entirely.

3. You can use the ItemAdd() event on the Items collection of the Inbox to
detect when any new items arrive. That will work as long as no more than 15
items are received at once.

4. You cannot set an EntryID for an item, that is done by Outlook. You can
add any GUID you want to a UserProperty. For appointments the
GlobalAppointmentID property should remain the same for a meeting request
coming into Inbox and the accepted appointment/meeting in the Calendar
folder. Use that property for identification purposes.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"fuubah" wrote in message
...
Hi all,

i am writing an Outlook 2007 addin (C# + VS 2008). Most of the problems i
had could i solve alone, but now i am on a point, where i hope to get some
informations from people may have more experience in writing addins. So
thanks for your time.

Here my questions:

1) Is there really no way to send appointments with categories to another
person?

In
http://www.vboffice.net/workshop.htm...showitem#t1 0
is said with a regfile "hack" you can have it back as in 2003.

2) I customized the appointment form, but i cant customize the
appontmentItem object in c#? i can create a new class with extends from
this
class, but outlook will not use this class, is this possible to change the
classes ? that must be so much places in the code ... and i dont believe i
will work.

I want to add new values to the appoinment.

2 a) may this work with reflection ?

3) is there an event , when a new appointment arrive in the inbox ? i know
there is a new mail event but this dont fire , if someone sends me a
appointment request.

4) is there a way to set the appointment id ?
i can add / remove items from the collection.

i can change the color of a category , when i remove one , and add a new
with the same name but with a different color. But i cant change the name
,
in this case this is a complete new item , what seems the be right ,
but
this dont solve the problem that i would like to rename appointments ,
which
needs in my view a setter to the ID.


Thanks for your time, i hope you may can answer some / all my questions.

Fuubah


Ads