A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Change calendar appointment colors programmatically



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 18th 08, 09:11 AM posted to microsoft.public.outlook.program_addins
Johan Machielse[_2_]
external usenet poster
 
Posts: 11
Default 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


Ads
  #2  
Old July 18th 08, 02:06 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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


  #3  
Old July 18th 08, 02:12 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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" wrote in
message ...
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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My calendar colors change when another computer logs into my calen RainMan Rob Outlook - Calandaring 4 December 18th 07 06:16 AM
how to programmatically change default account muybn Outlook and VBA 3 October 16th 07 05:54 AM
How can I change the set of (ugly) colors assigned to calendar johnk Outlook - Calandaring 6 July 8th 07 08:00 PM
Programmatically change Outlook Settings Mitchell Outlook and VBA 0 June 29th 06 04:31 PM
Eliminating Weekends Programmatically in Recurring Appointment clarkel Outlook and VBA 3 February 7th 06 11:22 PM


All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.