Click here to download the WordProcessingML snippets
In this upcoming series of articles I'll be explaining various coding scenarios using Open XML. To relieve you of the burden of laboriously copy / pasting code, I will extend the available OpenXml code snippets and provide these new scenarios in that format as well. The snippets easily work together to manipulate your documents in various ways.
What can you expect from this series? Various coding samples on how to perform basic actions such as inserting and formatting charts or formulas in a SpreadsheetML document, handling tables or content controls in WordProcessingML, and PresentationML examples showing how to include various things in your slides. The snippets make use of the Packaging API and System.Xml, but you can easily port the code for use with your favorite zip and Xml libraries.
The first article explains the basics of working with the new WordProcessingML snippets. You can download all snippets here, and start tinkering with them. The other examples will be provided later this month.
The following articles have been released in this series:
WordProcessingML Snippets: Part 1, utility snippets
WordProcessingML Snippets: Part 2, basic paragraphs
WordProcessingML Snippets: Part 3, table structure
WordProcessingML Snippets: Part 4, table snippets
WordProcessingML Snippets: Part 5, Files and Images