Creating a helper class in C# to access common Outlook item members

In Microsoft Outlook, items such as MailItem, ContactItem and AppointmentItem have similar properties and methods. For example, the Application, Attachments, Body, Categories, and Class properties, and Close, Copy, and Display methods are common to all Outlook item objects. The COM-based Outlook object model returns the generic Visual Basic Object instead of the exact item type for many…

0

Attaching a File or an Outlook Item to an Outlook Message

Attaching a file to a Microsoft Outlook mail item is one of the most popular customer actions in Outlook.   Naturally, many power users also ask how to do this programmatically. The Outlook object model provides the Attachment object, Attachments.Add method, and an Attachments property for each of the Outlook item objects (for example, mail, appointment, contact, meeting,…

0

Programmatically Accessing the Nickname Cache in Outlook 2010

I recently chatted with our MAPI expert Stephen Griffin and would like to share what I learned about the Outlook nickname cache. The nickname cache is the list of recipient names that is displayed when you insert names in the To, Cc, or Bcc field in an Outlook email or meeting request. The nickname cache…

0

Nice Roll-up of Recent Publications: Access, Excel, Office, OneNote, Outlook, Visio, Word

  API References and SDKs  Component API Reference for Office 2010 Outlook 2010 Developer Reference (MSDN refresh) Outlook 2010 Primary Interop Assembly Reference (MSDN refresh) OneNote Developer Reference: Application Interface      Technical Articles  Creating Subprocess Diagrams Programmatically in Visio 2010 (March refresh) Creating Subprocess Drawings Programmatically in Visio 2010        Sample Code…

0

Automating Highlighting of Search Results in an Outlook Message

Do you know about the new Outlook add-in that automates highlighting of your search string in an email message? The Visual How To, Automating Search Highlighting in Outlook 2010, provides a real add-in that you can build in Visual Studio and run with Outlook 2010, and that improves your experience searching for email content. Read…

0

How Do I Extend Outlook to Do…

Frequently we come across the question “How do I extend Outlook to do <a task>”. Depending on how extensive the task is, you might look for your answer in one or more of the following ways: Use a search engine to see if someone has posted a solution to a similar question on the Internet….

1

How to Search for a String in an Outlook Email Message and Automate a Reply that Contains the String

I’d like to demonstrate a technique that helps automating email replies – when creating a reply to a message, search for a specific string, such as a reference number or item number, from the original message; dynamically create a greeting using the search result, and then automatically insert the greeting in the reply. This technique…

0

Tips for Filtering Items Using Date-time Comparison

In my recent posting about a time-reporting macro, I mentioned a workaround to have the macro include appointments that fall outside of the normal work hours set in the Outlook Options dialog box. Alert: If you have appointments in your date range that start and end before the beginning of work hours you have specified…

0

New Releases of the Outlook 2010 Auxiliary Reference and Outlook 2010 MAPI Reference

This week our group published the Outlook 2010 Auxiliary Reference, and updated the Outlook 2010 MAPI Reference! The two references have been reorganized such that all content pertaining to MAPI for Outlook is now centralized in the Outlook 2010 MAPI Reference. The Outlook 2010 Auxiliary Reference contains documentation and samples for APIs that allow developers…

5