User`s guide

13 Create a Report Program
13-80
However, if you open a newly generated report yourself in Word, without first using
rptview, perform these steps to get the TOC to appear.
1
In the Word template, select the TOC reference.
2
Open the Reference pane and click the Update Table button.
3
In the Update Table of Contents dialog box, select Update entire table and click
OK.
4
Save the report.
Create an HTML Table of Contents
The DOM API provides a JavaScript script that you can include in an HTML report to
generate a table of contents when you open the report in an HTML browser. To use this
script to generate a TOC in an HTML report, perform these steps.
1
Create an HTML TOC placeholder element in the template. See “Create an HTML
TOC Placeholder” on page 13-81
2
Set the outline levels of the section heads that you want to appear in the table of
contents. See “Set Outline Levels of Section Heads” on page 13-82.
3
Open the generated report in a browser.