Use DataSourceSeparator to set the character that separates a data source name from a column name in a data marker. '.' is the default data source separator.

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public char DataSourceSeparator{ get; set; }
</pre></td></tr></table>
<p>Public Property DataSourceSeparator() As Char</p>

The DataSourceSeparator property must be set before Open is called because the merge field collection is parsed when the document is opened.

The following characters cannot be used as data source separators:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_@$#()[],

The space character cannot be used as a data source separator.


          WordTemplate oWW = new WordTemplate();
          oWW.DataSourceSeparator = "-";
          oWW.Open("Template.doc");
          ...
        

          Dim oWW As New WordTemplate()
          oWW.DataSourceSeparator = "-"
          oWW.Open("Template.doc")
          ...