Posts Tagged ‘VSTO’

How To: Use Find and FindNext methods to retrieve Outlook mail items from a folder (C#, VB.NET)

As you have probably guessed, this article will describe the Find and FindNext methods of the Outlook Items class. But before focusing on the functionality of these methods, I would like to draw an analogy with database programming in the .NET world. In ADO.NET there is the System.Data.SqlClient.SqlDataReader class which provides the Read method... Read the rest of this entry →

How To: Fill TO,CC and BCC fields in Outlook programmatically

In my previous article, where I showed how to create and send an Outlook message programmatically, I added a recipient to the e-mail. Now I want to delve deeper and show you what you can do with the Recipients collection. Outlook developers frequently need to add recipients to the TO, CC and BCC fields... Read the rest of this entry →

How To: Create and send an Outlook message programmatically

Today I want to tell you the story about sending messages in Outlook programmatically. In one of my recent posts I showed two possible ways of creating and showing a new Outlook message. And now I want to make an addition to that: demonstrate how you can send a message programmatically... Read the rest of this entry →

How To: Create a new Outlook message based on a template

In my previous article, where I demonstrated how to create and show an Outlook message programmatically, a mail item object was created from scratch. Now I want to show you the way to create a new mail item based on a template... Read the rest of this entry →

How to create and show a new Outlook mail item programmatically: C#, VB.NET

One of the most widespread tasks in Outlook is creating and showing an e-mail item to the user programmatically (or just sending it silently). Today I will teach you how to do it in two different manners.... Read the rest of this entry →

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: 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 create advanced view and form regions with Add-in Express Regions for Microsoft Outlook and VSTO

In this post I'll introduce you to the new Add-in Express Regions for Microsoft Outlook and Visual Studio Tools for Office. To get started, create a new Outlook 2010 Add-in project in Visual Studio 2010... Read the rest of this entry →

Video: Add-in Express Regions for Outlook and VSTO

A couple of weeks ago Eric Legault made mention of the new Add-in Express product known as Add-in Express Regions for Outlook and VSTO. I've had the pleasure of working with this new product for several weeks and I think it is a winner... Read the rest of this entry →

Extend Your World – with our newest product

We here at Add-in Express like to boast that our products can help you take control of your projects, and take over the more mundane (and sometimes incredibly frustrating) aspects of add-in development. After all, our tools are focused on Rapid Application Development (RAD)... Read the rest of this entry →

Building a Real Time Data server for Excel: Avoiding VSTO, part 2

When I first started programming addins for MS Office, I took the obvious road of installing Visual Studio Tools for Office (VSTO). It all seemed rather easy and I had a toy excel addin completed in the first evening. My enthusiasm was quickly doused when I tried to deploy the addin. ... Read the rest of this entry →

Have any questions? Ask us right now!