User`s guide

13 Create a Report Program
13-64
append(rpt, ca);
close(rpt);
rptview(rpt.OutputPath);
Format a Table Using Microsoft Word Style Sheets
You can format tables using an existing Word styles in a template or a template style
that you modify or add.
To define a table style in a Word template, start by using these steps.
1
Open the Word template used with the report.
2
Open the Styles pane.
3
Click the Manage Styles button .
4
Click New Style.
5
In the Create New Style from Formatting dialog box, set Style type to Table.
For more information about using Word styles with DOM objects, see “Modify Styles in a
Microsoft Word Template” on page 13-117.
Format a Table Using an HTML Style Sheet
You can format tables using an HTML style defined in the template used to generate the
report.
To define a table style in an HTML template, define the style as a table style. For
example:
table.MyTable {
border-bottom-color: rgb(128, 128, 128);
border-bottom-width: thin;
border-collapse: collapse;
}
Tip Use the CSS parent (>) selector to specify the format of the children of a table to be
formatted with your table style. For example, this CSS code specifies the format of the
table entries (td elements) of a table whose style is MyTable.
table.MyTable > tr > td {