home | get the code | forums | share code | registration

More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Outlook Developer News

Another round of sample VSTO add-ins for Outlook

Here are more sample add-ins using Visual Studio 2008 and Outlook 2007:

Outlook and VS2008 on video

Microsoft has a new Office Developer Show series that offers tips on creating applications for Outlook and other Office programs. Some highlights:

  • Episode 2 - how to create a class in an Outlook project to avoid the object model security prompts
  • Episode 4 - a tip about saving and restoring the position of custom toolbars in Outlook 2007
  • Episode 5 - an Outlook add-in that uses the Application.ItemSend event to help users remember to send an attachments

Using the Outlook object model with .NET

Matt Staehle, who works on Microsoft's Messaging Developer Support Team, has been running a series of articles on working with the Outlook object model in .NET languages. Read all the installments to pick up best practices and avoid common mistakes. Code examples are in C#:

Integrating .NET controls in a folder home page

A folder home page (or FHP) is a web page displayed in an Explorer window in Outlook. A simple FHP might include an Outlook View Control (OVC) instance to show the folder contents, plus other controls to add functionality, such as filtering the view to show only items related to the current user. Two samples are available for more complex implementations using managed code controls.

In the article Outlook Folder Homepage: Hosting WPF, ActiveX and Windows Forms controls, Hülya Pamukçu describes how to incorporate Windows Presentation Foundation controls into an FHP, including a control that wraps an OVC. A complete code sample is available.

An earlier MSDN article, Outlook Customization for Integrating with Enterprise Applications, describes a CRM application that wraps an OVC in a managed code control and hosts it in an FHP. The accompanying sample is written for VSTO 2005, not VSTO 2005 SE or VS 2008, so you won't be able to load the project directly. You should, however, be able to start a new Outlook VSTO add-in project and add the code files from the CRM project to see how it works.

New tools for VSTO developers

Microsoft has released some unsupported, but handy free tools for Visual Studio Tools for Office developers. Of particular interest to Outlook programmers will be the Office Custom UI Manager for coordinating multiple Ribbon, task pane, and form region instances, the VSTO Troubleshooter to help with deployment prerequisites, and, especially for C# developers, the Office Interop API Extensions to handle parameterized and optional properties. See:

From the Forums

Basic Outlook Techniques
File Attach Code
I am looking for VBA code that will automatically attach a particular file when the user sends a message to a specific email address. I am using Outlook 2007 and would appreciate any help with that. Thanks
Getting the error 426 to create new contact...
Sir, I am using Vb 6.0 and outlook 2007. I am creating new contact using following code: Public bufferItem As Outlook.ContactItem Set bufferItem = Outlook.CreateItem(olContactItem) On this code i am getting the error: ERROR: 462 The remote...
Outlook Form Design
How do you create an image/picture field...
The default Outlook 2007 contact form has a place to enter a contact's picture and also a Business Card which fills out automatically as you fill in the fields. But when you create a new contact form based on the contact template, there is no picture...
How do I get my contact data into my new...
I just finished creating a new contact form in Outlook 2007 and it works great when I open a new contact. I exported my old contact data to a .csv file and then imported it back into my contact folder, but when I open a contact, it is still in the default...
Outlook Expert Techniques
Outlook Add-in with Terminal server
We have a problem with the Add_in using Outlook 2003 on a Terminal Server Win 2008. We have registered the add-in in HKLM but only one terminal users can connect the add-in. What's the problem?
'View In Overlay Mode' VBA
Hi Sue / All, Im using Outlook 2007 client and creating a number of additional calenders each containing various appointments. I have a handle on the individual calendars and would like to automatically set them to 'View in Overlay Mode' however,...
Outlook and .NET
Mail header from Outlook.MailItem object
I have an Outlook.MailItem object and need the complete mail header. Is it possible to get the complete mail header in VB.Net from an Outlook.MailItem? Or is it somehow possible to get the complete ASCII message (you could also call it the "source...
Once Outlook profile is removed and re-created,...
Hi, I have installed Outlook 2007 Add In. Add In works as per the expectation. Then I have removed Outlook Profile and re-created the same. Outlook Add In is moved to Inactive section. What could be reason ? I have used Machine Level policy...
Code Essentials
How to create a progress/status bar in outlook...
Hi I have a macro in a form that loads up information from a database and adds it to a combobox in a form through a loop of about 300-2000 items. This takes some time to do, and currently the computer screen appears 'frozen' for about 10-15 seconds. I...
How to access File Browser
I have designed one form for sending a mail.with attachment.But how to add attachment by searching file as we do i normal oultook mail. Means i want to open file browser then my file form any loction and then its should be attached to the mail. I...

Newest Resources

Aspose.Network -- Component suite for .NET development that includes methods to import .msg format data from file or stream without Outlook installed and export Outlook messages to .mht and .eml formats. Includes an Outlook control that can accept Outlook data via drag-and-drop.

Calling into a VSTO Add-in from a COM Smart Tag -- It's not possible to build a smart tag into a VSTO add-in, but McLean Schofield explains how to make it possible for the smart tag to call the add-in's methods.

Deploying Office Solutions with a Setup Project -- Mary Lee highlights the new information available on using Windows Installer to deploy Office 2007 solutions built with Visual Studio 2008.

Two-Way STSSync Protocol Server for Outlook 2007 -- Generic solution from Patrick Creehan to make it easy to build data providers that take advantage of the synchronization built into Outlook

Custom calendar providers for Outlook 2007 -- How to use a web service to make a data source appear in Outlook 2007 as a SharePoint event list.

VSTO Add-ins, COMAddIns and RequestComAddInAutomationService -- Andrew Whitechapel explains how to expose methods in a VSTO add-in that other add-ins (including VBA) can call.

MFCMAPI.exe - June 2008 version -- Updated version of the free MAPI Editor (and viewer); source code available as an excellent Extended MAPI demonstration project.

Deploying an Office solution using Windows Installer -- Mary Lee explains how to use a Windows Installer .msi file instead of ClickOnce to deploy a VSTO add-in ("application-level project") created with Visual Studio 2008.

The future of public folders in Microsoft Exchange -- Should you migrate to SharePoint now or later or not at all? Here is the latest guidance from the Exchange team, with a realistic look at the limitations that SharePoint has today.

How Do I: Deploy a VSTO Add-in -- This 15-minute video shows how to modify a setup program to automatically create a Code Access Security policy that will allow the add-in to execute.

Making a Custom Group Appear in the Message Tab of a Mail Item -- Norm Estabrook explains how to make a custom ribbon group appear on both the compose and read Inspector windows.

Communicator add-in for Outlook 2007 -- Outlook 2007 sample add-in, built using VSTO and the Communicator Automation API, to display Communicator contacts in a task pane, with source code.

PickFolderEx -- Custom control for displaying an enhanced version of the Pick Folders dialog with support for selecting multiple folders with or without subfolders, setting the root folder, and setting the default selection. Compatible with Visual Studio, VB 6.0, VBA, and VBScript. Developer license allows redistribution in customer projects.

Back To The Future - Or, Prototyping VSTO Add-ins for Unsupported Office Versions/Applications -- VSTO guru Andrew Whitechapel explains why the add-in model in VSTO 2005 SE and VS 2008 makes it easy to prototype add-ins for Office host applications that are currently unsupported and also to prototype add-ins for future versions of Office.

Displaying form region using Ribbons in Outlook 2007 -- Chris Ongsuco explains how to create a form region with the new VS2008 designer and add a button to the ribbon to create a new item using that form region.

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

Hot Code Samples

Beginner
Save and remove attachments from email items...
Sending a mail message with today's appointments...
Add appointment to other user's Calendar
Intermediate
C# AddIn sample: InspectorWrapper & CommandBar...
Import Appointments FROM Excel
Launch custom form message with default signature...
Advanced
Set color label on appointment
CommandBar & ExplorerWrapper c# example
Insert user signature with VBA

OutlookCode RSS Feeds

All OutlookCode.com content

Outlook developer news

New Outlook developer resources

OutlookCode.com forums

OutlookCode.com code samples

OutlookCode.com articles