PC Review

PC Review (http://www.pcreview.co.uk/forums/)
-   Microsoft Outlook Program Addins (http://www.pcreview.co.uk/forums/microsoft-outlook-program-addins-f283.html)
-   -   Change calendar appointment colors programmatically (http://www.pcreview.co.uk/forums/change-calendar-appointment-colors-programmatically-t3571828.html)

Johan Machielse 18th Jul 2008 09:11 AM

Change calendar appointment colors programmatically
 
Hi all,

A customer likes to see particular label colors for the different
appointments in his calendar related to the location where the appointment
will take place. Also, when he is creating a new appointment he wants to see
the colors of the attendees in the scheduling assistant.

What is the best way to solve this customer requirement?
- Can I use .NET to make such an add-in (I’ve read CDO 1.21 is not supported
by .NET) ?
- Are there some working (.NET) examples that access the color label
properties of an appointment?
- Is it possible what the customer likes to have?

Thank you in advance!

Johan Machielse
Avanade



Sue Mosher [MVP-Outlook] 18th Jul 2008 02:06 PM

RE: Change calendar appointment colors programmatically
 
> - Can I use .NET to make such an add-in (I’ve read CDO 1.21 is not supported
> by .NET) ?


You can use the third-party Redemption library
(http://www.dimastr.com/redemption) with .NET as a replacement (and
improvement over) CDO.

> - Are there some working (.NET) examples that access the color label
> properties of an appointment?


I don't know of any .NET examples, but here's one for VBA using CDO that
will show you the right field to use:
http://www.outlookcode.com/codedetail.aspx?id=139

> - Is it possible what the customer likes to have?


Setting the color label on the appointment is possible, but maybe your
customer is not aware that something similar can be done without programming
using automatic formatting of the view? Also, I would not recommend spending
much effort building such a system for Outlook 2003, because Outlook 2007
completely changes the way color coding in the calendar, basing it all on the
value of the Categories property.

> Also, when he is creating a new appointment he wants to see

the colors of the attendees in the scheduling assistant.

That's not possible. Attendees don't have colors assigned to them.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Johan Machielse" wrote:

> Hi all,
>
> A customer likes to see particular label colors for the different
> appointments in his calendar related to the location where the appointment
> will take place. Also, when he is creating a new appointment he wants to see
> the colors of the attendees in the scheduling assistant.
>
> What is the best way to solve this customer requirement?
> - Can I use .NET to make such an add-in (I’ve read CDO 1.21 is not supported
> by .NET) ?
> - Are there some working (.NET) examples that access the color label
> properties of an appointment?
> - Is it possible what the customer likes to have?
>
> Thank you in advance!
>
> Johan Machielse
> Avanade
>
>


Ken Slovak - [MVP - Outlook] 18th Jul 2008 02:12 PM

Re: Change calendar appointment colors programmatically
 
It's possible and you can use the Outlook object model's PropertyAccessor
object to work with the labels in Outlook 2007. For earlier versions of
Outlook I'd recommend using the Redemption library, which is a COM wrapper
around Extended MAPI and which works with managed code.

There are code samples of working with labels at www.outlookcode.com but I'm
not sure how many are managed code or if most are in VBA or VB6 type code.

--
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


"Johan Machielse" <JohanMachielse@discussions.microsoft.com> wrote in
message news:5B476D69-FC72-41E3-802E-F40F9FB0B324@microsoft.com...
> Hi all,
>
> A customer likes to see particular label colors for the different
> appointments in his calendar related to the location where the appointment
> will take place. Also, when he is creating a new appointment he wants to
> see
> the colors of the attendees in the scheduling assistant.
>
> What is the best way to solve this customer requirement?
> - Can I use .NET to make such an add-in (I’ve read CDO 1.21 is not
> supported
> by .NET) ?
> - Are there some working (.NET) examples that access the color label
> properties of an appointment?
> - Is it possible what the customer likes to have?
>
> Thank you in advance!
>
> Johan Machielse
> Avanade
>
>



ManojPatel 30th Jun 2011 05:10 PM

Hi,
Did you get anything for your requirement? Actually, I am looking for the same thing.
Please let me know if you have found any way.
Thanks in advance,
Manoj

Quote:

Originally Posted by Johan Machielse (Post 12314564)
Hi all,

A customer likes to see particular label colors for the different
appointments in his calendar related to the location where the appointment
will take place. Also, when he is creating a new appointment he wants to see
the colors of the attendees in the scheduling assistant.

What is the best way to solve this customer requirement?
- Can I use .NET to make such an add-in (I’ve read CDO 1.21 is not supported
by .NET) ?
- Are there some working (.NET) examples that access the color label
properties of an appointment?
- Is it possible what the customer likes to have?

Thank you in advance!

Johan Machielse
Avanade



All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.