Create a Section Header Variable in a Word Object
You can create a variable in a Word object in CDM to define section headers. The section headers are propagated to later pages of the current report object when the current report object is longer than one page. The appropriate report object property must also be set.
This task creates the headers that are to be repeated at the top of each page in a Word object. These headers are defined as header variables and work together with report object properties. During report generation, the section variable is converted to a header. You can create a section header variable for each Word object as necessary.
To create a section header variable in a Word object:
- Open the report that you want to work with.
- Open and check out the Word object for which you want to have a section header.
- Click the Section View Mode icon in the status bar.
- Type the header variable in the empty first line of the Word object. Use the correct syntax:
##SH<HeadingName>. - Click the Default View Mode icon in the status bar.
- Save your changes in the Word object.
- Check in the Word object.
- To open the Properties window, click the Show Properties icon.
- Type Continued in the Continue with Next field and click OK to save.
After the report is generated, the header will appear on the first page and append the Continue with Next on second and later pages.