Using the Open XML SDK from within a Managed Add-In

When you are writing code for an Office managed add-in, you can use the Open XML SDK to manipulate the current document in a whole variety of ways.  This is a very powerful technique, which in some circumstances can give your application much better performance.  This is the key point behind the paper that Anil…


Determining if an Open XML WordprocessingML Document contains Tracked Changes

Processing tracked changes (sometimes known as tracked revisions) is something important that you should full understand when writing Open XML applications.  If you first accept all tracked revisions, your job of processing or transforming the WordprocessingML is made significantly easier. This blog is inactive.New blog: TOCI’ve written an MSDN article, Accepting Revisions in Open…


Using Content Controls to give Semantic Meaning to Content in Open XML WordprocessingML Documents

A wide variety of business applications can take advantage of content controls to give semantic meaning to content in Open XML WordprocessingML documents.  However, most applications that can benefit from content controls fit into one of three broad categories: This blog is inactive.New blog: TOCDocument generation systems that use a template document for configuration….


SharePoint 2010 and Office 2010 Videos from the SharePoint Conference 2009

We’ve published ten of the most popular videos from the SharePoint Conference. SharePoint 2010 Videos This blog is inactive.New blog: TOCOverview of the SharePoint 2010 Developer Platform This SharePoint Conference video provides code-based demos and a brief look at the major new features, tools, and hosting options in SharePoint 2010. Developing with the New…


Testing for Base Styles in Open XML WordprocessingML Documents

Sometimes you want to process all paragraphs in a document, and filter based on the style name.  However, sometimes it isn’t good enough to just filter on the style name, because if another style inherits from the style of interest, you want to include it in your processing.  A common example is that you want…


Assembling Documents on SharePoint 2010 Sites by Merging Content from Excel, PowerPoint, and Word

Zeyad Rajabi and Frank Rice have put together a cool article, Assembling Documents on SharePoint 2010 Sites by Merging Content from Excel, PowerPoint, and Word, that shows how to build an innovative document generation solution on SharePoint using the Open XML SDK 2.0 where you merge content from Excel and PowerPoint to create an interesting…


Modifying an Open XML Document in a SharePoint Document Library

On a fairly regular basis, I need to write an example that retrieves an Open XML document from a SharePoint document library, modify the document, and save the document back to the document library.  The correct approach is to use a CAML query to retrieve the document.  This post presents the minimum amount of code…


Developing with SharePoint 2010 Word Automation Services

There are some tasks that are difficult using the Open XML SDK, such as repagination, conversion to other document formats such as PDF, or updating of the table of contents, fields, and other dynamic content in documents.  Word Automation Services is a new feature of SharePoint 2010 that can help in these scenarios.  It is…


Release of the Open XML SDK 2.0 for Microsoft Office

Microsoft has released the RTM version of Open XML SDK 2.0 for Microsoft Office today.  This is great news and another big step forward for developers who write software systems that read and write Open XML documents.  Till now, we’ve been working with Community Technology Previews (CTP) that had licensing restrictions (you couldn’t ‘go live’…


Formats Supported for altChunk

The altChunk importing functionality of Word supports the following formats for the imported content: This blog is inactive.New blog: TOC AlternativeFormatImportPartType enum Content Type Html text/html Mht message/rfc822 OfficeWordMacroEnabled application/ OfficeWordMacroEnabledTemplate application/ OfficeWordTemplate application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml Rtf application/rtf TextPlain text/plain WordprocessingML application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml XHtml application/xhtml+xml Xml   * application/xml   * This content type imports Office 2003 Word…