Page tree
    Created with Raphaël 2.1.0
    Loading...
Skip to end of metadata
Go to start of metadata

Introduced in build 8.1

Description

Gets or sets whether IF fields will be unlinked from the document after they are evaluated.

C#
public boolean UnlinkIfFields{get;set; }
vb.net
Public Property UnlinkIfFields()As Boolean

Remarks

This feature is available in OOXML files (DOCX/DOCM) only.

This property will only take effect if UpdateIfFields is set to true.
If set to true, all IF fields on the template will be removed after they are evaluated on the server side by the WordTemplate object. If set to false, the IF fields will remain in place whether or not they have been evaluated.
The result of the IF field and any contained mergefields will still be in the final document.

Examples

C#
WordTemplate WordTempl =new WordTemplate();
WordTempl.UnlinkIfFields =true;
vb.net
Dim WordTemplAs New WordTemplate()
WordTempl.UnlinkIfFields =True
  • No labels