Skip to main content

Word content controls resource center

Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Using content controls in Word 2007 and Word 2010, you can create document templates with rich, structured blocks of content.

Developer roadmap

Word Content Controls can be used in a number of different scenarios depending upon the solution you are trying to achieve. In general, most scenarios can be categorized in one of two ways, or a combination of both: document generation and data and content extraction.

The following table lists the two primary categories of Word Content Controls development usage scenarios, Document Generation Systems and Data and Content Extraction. Select from below to view the characteristics usually associated with each category, and suggested content that illustrates the concepts that related to the categories.


Document Generation Systems
Data and Content Extraction

Document generation systems are used to programmatically generate documents.

Sometimes software systems must automatically generate documents to support various scenarios. The design of the system may include the ability for a subject matter expert to create a template document that drives the generation. The template document must determine specific areas of the document for replacement with automatically-generated content. For example, a placeholder in the document must be replaced with the salutation and name of the addressee of a letter.

In addition, the template document may delineate specific sections of the template to remove from the generated document. For example, a template for a legal document may include all possible legal clauses, but based on the specific circumstances, certain legal clauses are omitted in the generated document.

Data and content extraction solutions are used to collect desired business information from existing documents.

For example, an oil company may receive a large number of reports from field personnel and vendors. They want to extract information from these reports in a standardized way, perhaps to build a consolidated report, or to populate a searchable database. Further, they want to leave the original document alone as much as possible, except to indicate the source of various paragraphs or numbers. As the oil company receives each report, appropriate personnel open the report, select areas of text in the document that are extracted after the document is submitted for processing by the software solution.

Working with content controls

Content controls and XML mapping

Magazine articles, blog posts, and forum threads

Reference

  • ContentControl Object

    An individual content control. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain contents such as dates, lists, or paragraphs of formatted text. The ContentControl object is a member of the ContentControls collection.

  • ContentControls Object

    A collection of ContentControl objects. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain content such as dates, lists, or paragraphs of formatted text.

  • CustomXMLPart Object

    Represents a single CustomXMLPart in a CustomXMLParts collection.

  • CustomXMLParts Object

    Represents a collection of CustomXMLPart objects.

  • XMLMapping Object

    Represents the XML mapping on a ContentControl object between custom XML and a content control.

Word site:
|
|
|
|
|
|
|
|