Being new to this myself, here’s what I did:
I’m using MS Visual Studio 2010 Pro.
- Download and install the OpenXML SDK
- Within my project in Visual Studio, select “Project” then “Add Reference”
- Select the “Browse” tab
- In the “Look in:” pull down, navigate to:
C:\Program Files(x86)\Open XML SDK\V2.0\lib and select the “DocumentFormat.OpenXml.dll - Hit OK
- In the “Solution Explorer” (on the right for me), the “References” folder now shows the DocumentFormat.OpenXML library.
- Right-click on it and select Properties
- In the Properties panel, change “Copy Local” to “True”.
You should be off and running now using the DocumentFormat classes.