Skip to end of metadata
Go to start of metadata

Introduced in build 8.6.1

Description

Gets or sets whether line breaks in data will result in a new paragraph after processing the WordTemplate.  This property only has an affect on OOXML Word documents (.docx, .dotx, etc).
C#
<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 boolean LineBreaksToParagraphs{ get; set; }
</pre></td></tr></table>
vb.net
<p>Public Property LineBreaksToParagraphs() As Boolean</p>

Remarks

If set to true, new lines in data will be treated as new paragraphs by the WordTemplate object when inserting into the document. If set to false, new lines in data will be inserted as soft-breaks in Word.  LineBreaksToParagraphs must be set before calling Open

Examples

C#
          WordTemplate WordTempl = new WordTemplate();
          WordTempl.LineBreaksToParagraphs = true;
        
vb.net
          Dim WordTempl As New WordTemplate()
          WordTempl.LineBreaksToParagraphs = True
        
  • No labels