Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Wiki Markup
{introducedin: 8.1

...

Description

Excerpt

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



{remarks}
{example}
{code:csharp|title=C#}
WordTemplate WordTempl =new WordTemplate();
WordTempl.UnlinkIfFields =true;
{code}
{code:vb.net
|title=vb.net
}
Dim WordTemplAs New WordTemplate()
WordTempl.UnlinkIfFields =True
{code}

{example}
Signature
C#C#
}
{description}

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

{excerpt}
{signature:C#}
public boolean UnlinkIfFields{get;set; }
Signature
{signature}
{signature:vb.net
vb.net
}
Public Property UnlinkIfFields()As Boolean
Remarks
This feature is available in OOXML files
{signature}
{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.
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle