The Microsoft Office 12 Object Library is a set of primary interop assemblies (PIAs) that enable you to use the features of Microsoft Office 2007 applications from Visual Studio projects. The PIAs allow managed code to interact with the COM-based object models of Office applications. In this article, you will learn how to download and use the Microsoft Office 12 Object Library in your Visual Studio projects.
To download the Microsoft Office 12 Object Library, you need to have Microsoft Office 2007 installed on your computer. The PIAs are installed automatically when you install Office 2007. You can also download them separately from the [Microsoft Download Center]. The download package contains the PIAs for the following Office applications:
The download package also includes a readme file that contains installation instructions and additional information about the PIAs.
To use the Microsoft Office 12 Object Library in your Visual Studio projects, you need to add a reference to the appropriate PIA in your project. For example, if you want to use the features of Excel 2007 in your project, you need to add a reference to the Microsoft Excel 12.0 Object Library PIA. To do this, follow these steps:
This will add a reference to the PIA in your project and allow you to use the Excel object model in your code. You can also use the [Reference (Object library reference for Office)] documentation to learn more about the objects, properties, methods, and events contained in the Office object model.
The Microsoft Office 12 Object Library is a useful resource for developers who want to use the features of Office 2007 applications in their Visual Studio projects. By downloading and referencing the PIAs, you can access and manipulate the COM-based object models of Office applications from your managed code. You can also use the [Office primary interop assemblies] documentation to learn more about the PIAs and how to use them in your projects.
6500f7198a