Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Excerpt

Gets or sets whether merge fields and next fields should be preserved after processing the WordTemplate.

Signature
C#
C#
public boolean PreserveFields{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property PreserveFields() As Boolean
{signature}
{remarks}
If set to {{true}}, all merge fields and next fields on the template will be preserved by the [WordTemplate|WordTemplate] object after processing and will be available for future use. If set to {{false}}, the merge fields and next fields will be replaced with data during processing and will not be available for future use.  PreserveFields must be set before calling [Open|WordTemplate.Open]
{remarks}
{example}{code:csharp|title=C#}
Remarks

If set to true, all merge fields and next fields on the template will be preserved by the WordTemplate object after processing and will be available for future use. If set to false, the merge fields and next fields will be replaced with data during processing and will not be available for future use. PreserveFields must be set before calling Open

Example
Code Block
csharp
csharp
titleC#
          
WordTemplate WordTempl = new WordTemplate();
          WordTempl.PreserveFields = true;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}
          
Dim WordTempl As New WordTemplate()
          WordTempl.PreserveFields = True
        
{code} {example}