Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Developer Outlook Addins > Creating a sear...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 1637 of 1746
Post > Topic >>

Creating a searchfolder with a userdefined column

by Jay Pete <osggroups@[EMAIL PROTECTED] > Dec 10, 2007 at 07:40 AM

Hi Guys,

I am trying to create a plugin for Outlook 2007 using Visual Studio
2008.

I am trying to create a new userdefined field called ColorID on my
Inbox. I want this ColorId to be used to create a new Search Folder. I
can do that using the code below. My problem is that I cannot get
Outlook to display the ColorID column in the Search Folder, and
subsequently group my search result by this column (a thing I can't do
manually in Outlook either by the way).

That's my first problem. I also want to enable in cell editing on this
Search Folder.

My next wish for this is that I want to add a little icon in the
column that shows the actual color of the ColorID I have added. Is it
possible to have two different views of the cell when the edit cursor
is in the cell and when it isn't. I'd like to be able to just write 2
for the color green for example, and then have it show up as a green
icon when the cell is no longer in editmode.

Can anyone point me towards a place where I can see how this is done
or show me? It would be greately appreciated! I have spent the last
three days trying to find a solution on the MSDN website without
finding a solution.

Thanks, Jay

---==CODE START==---
//Get folder object
Outlook.Folder folder =
Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
as Outlook.Folder;

//Add ColorID user definied property
folder.UserDefinedProperties.Add("ColorID",
Outlook.OlUserPropertyType.olText, Type.Missing, Type.Missing);

//Create Search Folder
string Scope = "'Inbox'";
string Criteria = "http://schemas.microsoft.com/mapi/string/
{00020329-0000-0000-C000-000000000046}/ColorID ci_phrasematch '2'";

Outlook.Search sFolder = Application.AdvancedSearch(Scope, Criteria,
Type.Missing, Type.Missing);

//Save search folder
sFolder.Save("Test");
---==CODE END==---
 




 9 Posts in Topic:
Creating a searchfolder with a userdefined column
Jay Pete <osggroups@[E  2007-12-10 07:40:15 
Re: Creating a searchfolder with a userdefined column
"Dmitry Streblechenk  2007-12-09 23:22:03 
Re: Creating a searchfolder with a userdefined column
Jay Pete <osggroups@[E  2007-12-10 12:46:31 
Re: Creating a searchfolder with a userdefined column
"Dmitry Streblechenk  2007-12-10 17:12:07 
Re: Creating a searchfolder with a userdefined column
Jay Pete <osggroups@[E  2007-12-11 01:10:05 
Re: Creating a searchfolder with a userdefined column
"Dmitry Streblechenk  2007-12-11 10:01:43 
Re: Creating a searchfolder with a userdefined column
Jay Pete <osggroups@[E  2007-12-11 01:39:46 
Re: Creating a searchfolder with a userdefined column
Jay Pete <osggroups@[E  2007-12-12 02:42:32 
Re: Creating a searchfolder with a userdefined column
"Dmitry Streblechenk  2007-12-12 13:40:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 15:20:20 CST 2008.