Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

2003 Microsoft Office Add-in Project Templates

Note Required applications

The features in this topic are available only if you have the required applications installed.

For more information, see Features Available by Product Combination.

  • One of these development environments:

    VSTO 2005

    -or-

    Visual Studio Team System

    -or-

    Visual Studio 2005 Professional Edition

  • VSTO 2005 SE installed in the development environment

  • Microsoft Office 2003

    -or-

    2007 Microsoft Office system

The Microsoft Office 2003 add-in project templates automatically add the necessary project references, files, and basic code to use as a starting point for application-level add-ins for the following applications:

  • Microsoft Office Excel 2003

  • Microsoft Office Outlook 2003

  • Microsoft Office PowerPoint 2003

  • Microsoft Office Visio 2003

  • Microsoft Office Word 2003

For more information about application-level add-ins, see Office Solutions Architecture Overview.

NoteNote

This topic describes the Outlook Add-in project template for Outlook 2003 that is included with Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System. This project template is available in the New Project dialog box when you select 2003 Add-ins under Office in the Project types pane. For information about the Outlook Add-in project template for Outlook 2003 that is included with Microsoft Visual Studio 2005 Tools for the Microsoft Office System, see Outlook Add-in Project Template. For information about the differences between these project templates, see Getting Started Programming Application-Level Add-ins.

NoteNote

By default, some of the files and references in the following list are hidden. To see them, click Show All Files on the Solution Explorer toolbar. Additionally, there are some files and references not in the following list that are common to many Visual Studio project templates.

The following methods are included in the project template code file.

Startup (ThisAddIn_Startup)

This method handles the Startup event, which is raised after the application is running and all the initialization code in the assembly has been run. It is the last thing to run in the constructor of the class that your code is running in.

Shutdown (ThisAddIn_Shutdown)

This method handles the Shutdown event, which is raised when the application domain that your code is loaded in is about to unload. It is the last thing to be called in the class as it unloads.

By default, one user file is visible:

  • ThisAddIn (.vb file for Visual Basic or .cs file for Visual C#) - The main code file for the add-in.

Hidden Files

Visual Studio Tools for Office generates these hidden files. Do not modify these files manually; they are regenerated when changes are made to the project and they do not retain manual modifications.

  • ThisAddIn.Designer.xml - A declarative representation of the programmable objects in the add-in project.

  • ThisAddIn.Designer (.vb file for Visual Basic or .cs file for Visual C#) - A code file that provides helper implementations. These include code to instantiate objects correctly.

Visual Studio Tools for Office automatically creates a set of assembly references in Office 2003 add-in projects. Some references are shared by all add-in project types, and others are unique to specific projects. The following table describes the assembly references.

Assembly reference Project type Description

Microsoft.Office.Core

All

The primary interop assembly for shared Office components.

Microsoft.Office.Tools.Common

All

An assembly that provides the AddIn base class for the add-in.

Microsoft.VisualStudio.Tools.Applications.Runtime

All

The component that loads the main add-in assembly.

Stdole

All

The primary interop assembly for Automation.

Various .NET Framework assemblies

All

A collection of references to some of the .NET Framework assemblies that are used when you develop Visual Studio Tools for Office solutions.

Microsoft.Office.Tools.Excel

Excel Add-in

An assembly that provides the ExcelLocale1033Proxy and ExcelLocale1033Attribute classes. Excel add-ins can use these classes to pass the locale ID (LCID) 1033 to Excel for all culture-sensitive calls to the Excel object model. For more information, see Formatting Data in Excel with Various Regional Settings.

Microsoft.Office.Interop.Excel

Excel Add-in

The primary interop assembly for Excel.

Microsoft.Office.Interop.Outlook

Outlook Add-in

The primary interop assembly for Outlook.

Microsoft.Office.Interop.PowerPoint

PowerPoint Add-in

The primary interop assembly for PowerPoint.

Microsoft.Office.Interop.Visio

Visio Add-in

The primary interop assembly for Visio.

Microsoft.Office.Interop.Word

Word Add-in

The primary interop assembly for Word.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft