3.3

@@BeginSection/@@EndSection

The @@BeginSection and @@EndSection statement pair tells the document processor to place a new section in the generated document. Use @@BeginSection when you have section breaks in your document. Place the @@BeginSection statement just after the section break or at the beginning of the document if the document has only one section or you are in the first section. Place the @@EndSection statement just before the next section break, or at the end of the document if in the last section. All coded templates should have at least one @@BeginSection/@@EndSection pair, since all Word documents have at least one section. The document processor places section in the generated document in the same order as your @@BeginSection/@@EndSection pairs in the template.

Note: @@BeginSection/@@EndSection pairs must always contain an @@Include/@@End pair to tell the document processor what material to place within the section.

Syntax:

@@BeginSection(<name> #NewPage)

Parameters:

<name>
Is the section name and can be any value desired and is enclosed in single quotes.
#NewPage
Tells the doc processor to begin the section on a new page. Optional.

 

Example

@@BeginSection('Terms')
@@DefineSection('Terms')
@@Include

This content is included in the section.

@@End
@@EndSection