![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
I need to read the Outlook master categories and write an new entry to the list. It appear the master categories stored in registry (HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\ Outlook\Categories). Is this correct for the OL 2003 onwards? BTW, my solution will have prerequisite to OL 2003. How can I read and write the categories list. I am using the redemption and can not see anything in there which simplify. Anyway so far I have the following code but the value I get is decimal.... ----------------------------------- string categories = string.Empty; RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microso ft \Office\11.0\Outlook\Categories", false); if (key != null) { try { byte[] holder = (byte[])key.GetValue("MasterList"); for (int x = 0; x holder.Length; x++) { categories = categories + holder[x].ToString(); } } finally { key.Close(); } } ---------------------------------- Thanks in advance for your help. Regards, MA |
#2
|
|||
|
|||
![]() For OL XP and 2003 it's stored in HEX values. For OL 2000 it's plain text; and for OL 2007 it's not stored in the registry but in a hidden message in the default calendar. -- Best regards Michael Bauer - MVP Outlook Synchronize Outlook Categories: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Tue, 11 Dec 2007 17:38:18 -0800 (PST) schrieb MA: Hi, I need to read the Outlook master categories and write an new entry to the list. It appear the master categories stored in registry (HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\ Outlook\Categories). Is this correct for the OL 2003 onwards? BTW, my solution will have prerequisite to OL 2003. How can I read and write the categories list. I am using the redemption and can not see anything in there which simplify. Anyway so far I have the following code but the value I get is decimal.... ----------------------------------- string categories = string.Empty; RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microso ft \Office\11.0\Outlook\Categories", false); if (key != null) { try { byte[] holder = (byte[])key.GetValue("MasterList"); for (int x = 0; x holder.Length; x++) { categories = categories + holder[x].ToString(); } } finally { key.Close(); } } ---------------------------------- Thanks in advance for your help. Regards, MA |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Programming custom Categories into Master Categories List | John E. | Outlook - Using Forms | 3 | March 30th 09 12:06 PM |
Backup / Export Color Categories Master List | J R Oakley | Outlook - Installation | 17 | December 7th 07 10:35 PM |
how to ADD a set of categories to a Master Category List | Pieter9691 | Outlook - Calandaring | 2 | August 3rd 07 04:52 PM |
Limit to Categories in master List | Jack | Outlook - General Queries | 0 | October 7th 06 04:08 PM |
master list of categories and labels | [email protected] | Outlook - Using Contacts | 2 | September 21st 06 01:48 PM |