TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hima
NA
26
4.5k
setting background theme for the newly added contact in outl
Jul 18 2014 6:38 AM
I am facing a problem in outlook using c#, My Issue is, I want to add a default theme to the contacts that are added newly,
so that i can differentiate with existed one. Here is the code that i have tried.
public void Addcontact_Click(Office.IRibbonControl control)
{
MessageBox.Show("Add Contact");
OutLook._Application outlookObj = new OutLook.Application();
OutLook.MAPIFolder fldContacts = (OutLook.MAPIFolder)outlookObj.Session.GetDefaultFolder(OutLook.OlDefaultFolders.olFolderContacts);
OutLook.ContactItem newContact = (OutLook.ContactItem)fldContacts.Items.Add(OutLook.OlItemType.olContactItem);
newContact.FirstName = "Sai";
newContact.LastName = "S";
newContact.Email1Address = "
[email protected]
";
newContact.Save();
}
#endregion
Any Help is appreciated,
Thanks in advance
Reply
Answers (
0
)
How to tranfer an attachments data via a web service C#
creating a chart in asp.net using c#