Export (0) Print
Expand All
39 out of 60 rated this helpful - Rate this topic

Getting Started with the Open XML SDK 2.0 for Microsoft Office

The Open XML SDK 2.0 for Microsoft Office simplifies the task of manipulating Open XML packages and the underlying Open XML schema elements within a package. The classes in the Open XML SDK 2.0 encapsulate many common tasks that developers perform on Open XML packages, so that you can perform complex operations with just a few lines of code.

Using the classes in the Open XML SDK 2.0 is simple. Once you have installed the Open XML SDK 2.0, open your existing project or application in Visual Studio, or create a new project or application. Then, in your project or application, add references to the following components.

  • DocumentFormat.OpenXml

  • WindowsBase

To add a reference in a Microsoft Visual Studio 2008 project

  1. In Solution Explorer, right-click References and then click Add Reference. If the References node is not visible, click Project and then click Show All Files.

  2. In the Add Reference dialog box, click .NET.

  3. In the Component Name column, select the components (scroll if you need to), and then click OK.

    TipTip

    To select more than one component, hold down the Ctrl key and click each component.

The added components are displayed in the References section in Solution Explorer.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.