composeDOCXContent
Evaluates the Word content commands within the specified DOCX document. The result of the evaluation will be a copy of the DOCX document with whatever modifications the content commands caused.
This command triggers an evaluation process specifically only for Word content commands, not the older content control -based tags produced through the Dynamo Office Add-in. Use the composeContent command for composing contents of legacy DOCX templates.
Child commands
evaluateTag
Optional. Add one or more of these to limit the commands that are evaluated.
Attributes
var | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | String | No |
Defines the name of the variable placed into the variable context whose value is the evaluated document File. |
template | ||
---|---|---|
Required | Value type | EL-evaluated |
No | File | Yes |
Defines the DOCX template whose content is evaluated. |
title | ||
---|---|---|
Required | Value type | EL-evaluated |
No | String | Yes |
Defines a title for the composed DOCX document. If undefined, the title of the File defined through |
Examples
Use composeDOCXContent
command within an Online template's Flow to create Word output. Simply load a Word file that includes content commands and use composeDOCXContent
to compose the document.
<load var="wordFile" contentDocumentId="xxxx"><composeDOCXContent var="composedDocx" template="${wordFile}" title="Example Word document">