Two common patterns are used when creating a
report template document layout. You can use these patterns as a
base for creating your own report template documents.
Form pattern
In the form pattern, the data is displayed as a
block of values for each record in the table. The block typically
contains several pairs of labels and data values that are arranged
in the block. The following illustration shows this pattern.
The layout has the following characteristics:
The Body table in the layout is a single
cell.
The Body table has another table nested in
it that contains the rows and columns that define the layout of the
data.
The captions and fields for the report are
placed in the cells of the nested table.
The StartTemplateSectionRepeating bookmark
is placed in a cell of the nested table to indicate that the entire
single-cell row of the Body table will be repeated for each record
in report.
The Body table may also have rows for additional
headers and additional footers. The Report Footer table and Page
Footer table are optional in this pattern.
Column pattern
In the column pattern, the data for the report is
divided into columns, with one row for each record in the table. A
set of column headers appears at the top of each page. The
following illustration shows this pattern.
The layout has the following characteristics:
The first row of the Body table is divided
into columns that contain the captions for the values in the
report. The properties for the row are set in Microsoft Word to
make the column repeat at the beginning of each page.
The Body table can contain rows for
additional header data and additional footer data.
The Body table has a row that contains a
nested table. This nested table is divided into columns, and the
fields for the report are placed in these columns.
The StartTemplateSectionRepeating bookmark
is placed in a cell of the nested table to indicate that the entire
row of the Body table will be repeated for each record in
report.
The Report Footer table and Page Footer table are
optional in this pattern.