insert_text_block

The keyword insert_text_block is deprecated. Use the statement TEXTBLOCK instead (for more information, see TEXTBLOCK statement).

Use this function to insert predefined Text Blocks into a result document. See KCM Designer Help for more information on how to use Text Blocks.

The function insert_text_block has one parameter of type TEXT. This parameter contains the label of the Text Block that needs to be inserted. The result of the function is of type TEXT and is the text of the predefined Text Block.

If the Text Blocks set that the Text Block belongs to has an associated Field Set, you need to assign values to all Fields from this Field Set using a variable of type FIELDSET. Also, do so if the Text Block inserted into the result document does not use any of these Fields.

The layout of the Text Block is determined by Microsoft Word styles. You need to define the correct styles. For more information on how to define Text Blocks styles, see TEXTBLOCK statement.

An example is provided here.

@(insert_text_block("Clauses"))

This example shows how the Text Block with label "Clauses" is inserted into the result document.

To run a Master Template containing this feature, you need KCM Core or KCM ComposerUI Server.