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#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public boolean PreserveFields{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property PreserveFields() As Boolean</p>Boolean
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 Block
vb.net
vb.net
titlevb.net
            Dim WordTempl As New WordTemplate()
          WordTempl.PreserveFields = True