Content Controls

Back to TOCJust VideosCondensed TOC

Content controls are the main mechanism to delineate content in WordprocessingML documents.

I’ll present some guidance and sample code for creating a document-generation system that uses SharePoint lists to populate tables in an Open XML word-processing document. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  SharePoint 2010  Content Controls  DOCX Generation
This is a blog post series on parameterized Open XML WordprocessingML document generation. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
Content controls are an effective way to add structure to word processing documents. This post explains how to write a very small LINQ query to retrieve the contents of content controls. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls
Creating Data-Bound Content Controls using the Open XML SDK and LINQ to XML (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls
DocumentBuilder is an example class that’s part of the PowerTools for Open XML project that enables you to assemble new documents from existing documents. DocumentBuilder fixes up interrelated markup when assembling a new document from existing documents. This post shows how to use DocumentBuilder in concert with content controls to control the document assembly. (Article)

Keywords:  OpenXML  Open XML SDK  DocumentBuilder  PowerTools for Open XML  WordprocessingML  Content Controls
Explains an approach for using styles and content controls for implementing an authoring environment for a publishing system. (Article)

Keywords:  OpenXML  WordprocessingML  Managed Add-Ins  Content Controls
You may have the need to associate arbitrary amounts of data with each content control. You may also have the requirement that the document author can create and edit this auxiliary information. Content controls don’t directly have a facility for storing and maintaining such information, but there is a fairly easy approach to solving this problem. (Article)

Keywords:  OpenXML  WordprocessingML  Content Controls  Managed Add-Ins
Using Word 2010 or Word 2007 as an important part of a content publishing system is a powerful approach. This article contains guidance and direction about how to build a content management system, and transforming Open XML WordprocessingML documents to other document formats. (Article)

Keywords:  OpenXML  WordprocessingML  Content Controls
Data and content extraction is one of the scenarios where content controls are very useful. Data extraction is when you are extracting specific numbers or string values from a document. Content extraction is when you are extracting formatted WordprocessingML tables and paragraphs, and constructing another document from that content. (Article)

Keywords:  OpenXML  WordprocessingML  Managed Add-Ins  Content Controls
Using Content Controls to give Semantic Meaning to Content in Open XML WordprocessingML Documents (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls
Introduces this blog post series on generating WordprocessingML documents, outlines the goals of the series, and describes various approaches that I may take as I develop some document generation examples. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
This post examines the approaches for building a template document for the document generation process. A template document is a DOCX document that contains content controls that will control the document generation process. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
Discusses enhancements that enable the template designer to write infrastructure code for the document generation process. Also discusses how the document generation process will work. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
This post details my super-simple template system, which will be more than adequate for building this first version of a doc gen system. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls
First version of this document generation system that is driven by C# code that you write in content controls in a Word document. As an intro, he has recorded a small screen-cast that shows the doc gen system in action. (Article,Video)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
This is a preliminary version of a simple DOCX generation system, which you can download, unzip, and try. This article lists two screen casts, first 90 second screen-cast shows how to run the doc gen system after you download and unzip the zip file.The second 2 1/2 minute video shows using the document generation system at scale. It shows generating 3000 documents in under a minute. (Article,Video)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
In the following screen cast shows the process of adjusting the XML data that drives the document generation system, as well as adjusting the template document to use that data. (Article,Video)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
Introduces the approach of configuring the document generation process by entering XPath expressions in content controls in a template document. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
You may have a picture content control where you want to replace the picture with a different picture. This post shows the Open XML SDK V2 code that is necessary to find a picture content control with an alias of “MyPicture”. It then finds the ImagePart, and then replaces the contents of the image part with a different image. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls
You may have a picture content control where you want to replace the picture with a different picture. This post shows the Open XML SDK V2 code that is necessary to find a picture content control with an alias of “MyPicture”. It then finds the ImagePart, and then replaces the contents of the image part with a different image. (Article)

Keywords:  OpenXML  Content Controls  WordprocessingML
In this post, I release V2 of this simple document generation example. I provide a 2-minute screen-cast that shows the document generation process, generating 3000 documents in less than 30 seconds. (Article,Video)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
Sometimes you want to iterate over all content controls in a WordprocessingML document. You may want to search for a content control with a specific tag, or you may want to process all content controls of a specific type. This blog post shows how to iterate over all content controls. (Article)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls
Three minute screen-cast that demonstrates changing the schema for simple document generation system that you configure by placing XPath expressions in content controls. (Article,Video)

Keywords:  OpenXML  Open XML SDK  WordprocessingML  Content Controls  DOCX Generation
The glossary part is used for the placeholder text for content controls. In DOTX, it is used for the content for quick parts. This 3 minute video demonstrates these two uses. It also shows a little trick you can do with content controls and the glossary part. (Video)

Keywords:  OpenXML  Content Controls  WordprocessingML
Using custom XML parts and content controls, we can create smarter documents that provide needed functionality for users. Content controls and custom XML parts enable us to integrate business data with content in a document. In addition, content controls can be used to delineate data or content in a document. (Video)

Keywords:  OpenXML  WordprocessingML  Content Controls