Word

Creating Word recipes with Documotor

This section will guide you through binding transformed data to your templates.

The bindings in Word are placed in so-called Content controls, a piece of Word's native functionality. The easiest way to manage Content controls is through the Developer tab, which is hidden by default. In case yours is not visible, follow Microsoft's short guide on how to show the Developer tab.

As a rule, the bindings in this section are placed into the tag of a Rich text content control. We'll indicate if a binding deviates from this. The placement of the content control in the document defines exactly where the data is inserted, while the tag has the format of a JSON object, whose keys and values define which pieces of data are inserted. This is the general format:

{ "BindingType": "type", "BindingKey": "value" }.

πŸ“˜

The latest version of the Editor supports adding most bindings and content controls directly in the editor. However, for Charts and Images, there must be a Rich text or Image content control added in Word before using the Editor to insert bindings.

The content control binding will contain at least two keys – BindingType and BindingKey.

The different binding types will be explained in-depth in the articles in this chapter, and binding keys are explained in another article.

Here's an overview of all Word bindings: