You can insert the content of other text files like Word, RTF or HTML via data field. For example, if you want to display different texts on training certificates depending on the participant’s success level. The data source contains the partial file path to the text file and the dox42 Word Add-In completes and follows this path to include the text file into the generated document.

Example for a text file for inclusion
Steps
Add the needed text file(s) in or below the same folder as the Word template.
Set up your data source to contain the partial file path to the text file. In the following example the text files are stored in a subfolder named
Textblock
.Example of a text file data field in an Excel data source
Open your Word template.
Go to the dox42 ribbon and select Insert Data Field.
dox42 ribbon
The dox42 Data Fields pane opens, which contains with all the components of the Data Map.
Insert a new data field or select the already inserted data field in the document template that contains the path to text file.
The details of this placeholder are displayed in the dox42 Data Fields pane.From the Type dropdown select one of the following entries:
WordDoc
Rtf
Htmlfile
In the Directory/URL text field enter the
<%DOCPATH%>
variable to complete the file path to the text files.
The<%DOCPATH%>
variable contains the document template’s path. In our example the dox42 Word Add-In will now complete the path defined in our Excel data source with the document template’s folder path.
This could look like this:C:/Document Templates/Training_Certificate/TextBlock/Distinction.docx
WordDoc settings
Select OK.
Save the Word template.
Result
You have inserted a text file via data field. When you generate the document, the data field will include the contents of the text files.

Generated document with included content from the text file Distiction.docx