Posts Tagged ‘C#’

How To: Add a custom property to the UserProperties collection of an Outlook e-mail item

Today I want to tell you the story about Outlook user properties. Each item in Outlook such as MailItem, AppointmentItem, ContactItem and etc. (except for the NoteItem) provides you with the UserProperties property which returns an instance of the UserProperties class... Read the rest of this entry →

How To: Get a list of Outlook attachments

As a developer, sometimes you may want to know what is attached to the e-mail you have selected or opened in Outlook. Today I will show you how to iterate over the attachments collection and get the required information about attached items, such as file name, display name and type... Read the rest of this entry →

How To: Add an existing Outlook e-mail message as an attachment

Now I want to show you how to attach an e-mail instead of a regular file. For such task I created a simple method in the code called AddMessageAsAttachment. This method attaches a MailItem object to the e-mail message and accepts two parameters: the first is the container e-mail message and the second one is an e-mail message which should be attached... Read the rest of this entry →

How To: Add an attachment to an Outlook e-mail message

Sometimes developers need to create an add-in, which automatically sends reports based on some rules. The report can hold one or more attachments with the data the recipient needs. Today I will show you how to attach something to the e-mail message programmatically... Read the rest of this entry →

How To: Respond to an Outlook email programmatically

Several Outlook item types provide the Forward, Reply and ReplyAll methods. Let's see how to respond to an Outlook.MailItem... Read the rest of this entry →

How To: Get any standard / default folder in Outlook

One of the most common tasks in Outlook programming a developer may face is getting a standard folder. Here I will show you how to get it... Read the rest of this entry →

How To: Delete a folder in Outlook

Some time ago I showed a way of creating a folder in Outlook. Now I want to show the reverse operation – deleting a folder. The Outlook Object Model provides the Delete method of the Folder class for such task. It doesn’t accept any parameters and doesn’t return any value. It just does its job!... Read the rest of this entry →

How To: Create a new folder in Outlook

Today I will show you how to create a new folder in Outlook. As you have probably noticed, the Outlook Object Model provides the Folders class... Read the rest of this entry →

How to specify account for an outgoing Outlook message

How to specify account for an outgoing email message in Outlook 2000-2010?... Read the rest of this entry →

How to allow a user to choose target MS Office applications during installation

In today's post I'll demonstrate how you can customize your add-in setup project to allow your users to select which Microsoft Office applications the add-in will be installed for. I am using Add-in Exprewss 2010 for Office and .net... Read the rest of this entry →

Customize Office 2010 Ribbon UI programmatically

The Microsoft Office Ribbon is probably one component we all use in almost every MS Office add-in. In today's post we'll take a closer look at the Office 2010 Fluent Ribbon UI as well as various ways you can customize it to fit your needs... Read the rest of this entry →

Creating integrated Office solutions with Add-in Express

Add-in Express enables you as a developer to quickly and easily create, not just MS Office add-ins but also Excel XLL add-ins, Excel Real-time data (RTD) servers and smart tags. In this post I'll demonstrate how you could include all this functionality in one Visual Studio project. Start by creating a new ADX COM Add-in project in Visual Studio... Read the rest of this entry →

How to localize your Office COM add-in

Let's be honest, the present day market place is an international one. It is no longer good enough to only have your application and/or add-in support just in one language. If you're planning on taking over the world you need to start thinking "localization".... Read the rest of this entry →

Adding Internet Explorer bars to IE GUI using Add-in Express

Add-in Express for Internet Explorer is yet another tool designed to make the life of developers easier. It provides you with a quick and simple way to customize Microsoft Internet Explorer. In this post I'll demonstrate how to create an explorer bar for Internet Explorer... Read the rest of this entry →

Programming for Outlook Business Contact Manager (BCM)

Microsoft Business Contact Manager or BCM is a great way for mostly small businesses to manage their business contacts, sales leads and projects. The beauty of BCM for MS Office developers is the fact that it is entirely contained within MS Outlook; giving the user a seamlessly integrated experience with Outlook... Read the rest of this entry →

How to install multiple Office add-ins using one setup project

In today's post I'll demonstrate how you can install multiple Add-in Express Microsoft Office Add-ins without building multiple setup programs. Start by creating a new ADX COM Add-in project in Visual Studio ... Read the rest of this entry →

Have any questions? Ask us right now!