Export (0) Print
Expand All
2 out of 3 rated this helpful - Rate this topic

Installing and Referencing the Outlook 2007 PIA

You must first install the Outlook 2007 Primary Interop Assembly (PIA) in the Global Assembly Cache (GAC) before you can incorporate information from the PIA in an Outlook managed add-in. You can do so by choosing the Typical installation of Office and then adding .NET Programmability Support for Outlook.

To add .NET Programmability Support for Outlook after Outlook is installed

  1. In Control Panel, click Add or Remove Programs.

  2. Select your installation of Office and click Change.

  3. Select Add or Remove Features.

  4. Click Continue.

  5. In the Installation Options tab, click the '+' to expand the application for which you want to install the PIA.

  6. Click the drop-down arrow adjacent to .NET Programmability Support and select Run from My Computer.

After installation, if you are using Visual Studio to create the managed project, you can add a reference to the Microsoft Outlook 12.0 Object Library component. Subsequently, in the object browser, under the Microsoft.Office.Interop.Outlook namespace, you can see managed interfaces in the PIA that have names corresponding to objects in the Outlook object model.

For information about other ways to install the PIA for Office, see How to: Install Office Primary Interop Assemblies.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.