Inserting templates with variable names (Part 1) – XpressDox
In some situations, the name of a file to be included in the document is contained in the Data Set. In these cases, instead of IncludeTemplate
, the command InsertDocument
is used.
Tutorial videos are available here.
Visit our User Forum for discussions and solutions
In some situations, the name of a file to be included in the document is contained in the Data Set. In these cases, instead of IncludeTemplate
, the command InsertDocument
is used.
Sometimes there are just too many choices of paragraph or clause to be included or excluded from a document. Using If and Else commands is inappropriate when there are hundreds of combinations. XpressDox has the powerful InsertDocument command to handle just this situation – where the user running the template chooses which clauses should be inserted.
Selection of multiple templates to be run can be done by the user using the XpressDox explorer, but the template author can also control the selection of templates using a master template with document-selection logic built into it.
When including part (or all) of one document into another, which is the basis of the BaseTemplate
, IncludeTemplate
and InsertDocument
commands, there is always an issue about what formatting (styles, fonts, etc.) should be applied in the resulting document. XpressDox provides three options for this.