DMS provides a simple way to automatically fill documents with custom data. Microsoft Word provides a flexible way to define Merge-Fields to fill content in word dynamically.
In DMS its possible to use Word Templates also to dynamically show/hide Text Elements in a Word depending on the input data. This is supported by the Bookmark feature in Word.
Following sample shows how to define Merge Fields and Bookmarks to have a highly flexible Document Template which can react to input data.
1. Define Merge Fields
a) Add Merge Fields to document
b) Use following code part to fill data in an online document generation:
2. Define Bookmarks for show/hide text elements
a) Highlight first the Line which needs to be configured for showing/hiding.
b) Use following code part to configue the how/hide/delete of Bookmarks