Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Beginner sample codes for the Open XML SDK? [closed]

I recently started working on the Open XML SDK 2.0.

I would like to know if there is any better documentation (instead of open xml sdk2.0 itself) or any other resource to learn working with the Open XML SDK?

like image 703
stazera Avatar asked Dec 03 '10 06:12

stazera


People also ask

What is Open XML SDK?

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

How do I create and open an XML file?

For this, add OpenXml from NuGet Packages by right-clicking the project and selecting "Manage NuGet Package" and search openxml. From the list, select DocumentFormat. OpenXml as shown below and install it. Next, create functions for creating an Excel package using OpenXml as shown below.

How do I open Office Open XML in word-processing?

#1) Open Windows Explorer and browse to the location where the XML file is located. We have browsed to the location of our XML file MySampleXML as seen below. #2) Now right-click over the file and select Open With to choose Notepad or Microsoft Office Word from the list of options available to open the XML file.


2 Answers

For me, the best resource was the OpenXML Productivity Tool. It is in the OpenXMLSDKTool.msi installation package.

This tool lets you open any existing word or excel document and browse a C# source code representation of the document. It is a great way to learn how to perform some of the more complicated tasks.

like image 191
Brian O Avatar answered Oct 19 '22 20:10

Brian O


Besides everything on MSDN, the most well-known place to learn Open XML and the SDK is http://openxmldeveloper.org/.

like image 36
Todd Main Avatar answered Oct 19 '22 22:10

Todd Main