Microsoft Office document creation and update is one of the hot topic in any project. Because organizations require them very often. So it is the duty of every software engineer to have a expetise on those technologies which are related to this requirement.
I recommend reading about these.
Visual Studio Tools for Office.
Microsoft Word Object Library
Microsoft Excel Object Library
Just search these on the google and read the wonderful information on the internet about these.
Showing posts with label VSTO. Show all posts
Showing posts with label VSTO. Show all posts
Monday, May 26, 2008
Office Programming
Labels:
Excel,
Office Programming,
Outlook,
VSTO,
Word
BCC in VSTO for outlook
It is interesting to know that MailItem.BCC can be assigned any value but it does not seem to work. There is an alternative approach for this which I used. It is as follows:
Outlook.Recipient rcp = ((Outlook.MailItem)Item).Recipients.Add("shujaatned@gmail.com");
rcp.Type = 3;
((Outlook.MailItem)Item).Recipients.ResolveAll();
Here Outlook.Recipient.Type = 3 means that this a BCC recipient.
This took me all day to find out. But I dont know why MailItem.BCC does not work.
Outlook.Recipient rcp = ((Outlook.MailItem)Item).Recipients.Add("shujaatned@gmail.com");
rcp.Type = 3;
((Outlook.MailItem)Item).Recipients.ResolveAll();
Here Outlook.Recipient.Type = 3 means that this a BCC recipient.
This took me all day to find out. But I dont know why MailItem.BCC does not work.
Labels:
BCC,
Blind copy,
Mail,
MailItem,
Outlook,
Visual Studio,
Visual Studio Tools for Office,
VSTO
Subscribe to:
Posts (Atom)