Page tree

Versions Compared

Key

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

Excerpt

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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Gets or sets whether merge fields and next fields should be preserved after processing the WordTemplate. 
{excerpt}
{signature:C#}
 public boolean PreserveFields{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property PreserveFields() As 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

{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#}

          WordTemplate WordTempl = new WordTemplate();
          WordTempl.PreserveFields = true;
        
{code}
{code:vb.net
|title=vb.net
}

          Dim WordTempl As New WordTemplate()
          WordTempl.PreserveFields = True
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle