Chapter 4 Using the Report Editor
An HTML presentation template file has an .HTMLTPL extension and allows you to define the following properties:
When you apply an HTML presentation template to a report all the corresponding properties defined in the presentation template are displayed in their respective field in the Report property sheet. Beside, all the options you have defined before (ex: font) are no longer taken into account. The styles defined in the presentation template file will be applied.
Report saved with previous versions
If you open a report saved in a previous version, the HTML presentation template has the values of the default HTML presentation template if these values are identical with the default ones. Otherwise, the Presentation template box will be empty (<None> value).
The HTML presentation template can include the following variables:
Variable | Description |
---|---|
%DATE% | Report date defined in report property sheet. |
%TIME% | Report generation time. |
%MODELNAME% | Model name of a report section. |
%MODELCODE% | Model code of a report section. |
%MODULE% | Module name of a report section. |
%APPNAME% | Application name (PowerDesigner). |
%TITLE% | Report title defined in report property sheet. |
%AUTHOR% | Report author defined in report property sheet. |
%VERSION% | Report version defined in report property sheet. |
%SUMMARY% | Report summary defined in report property sheet. |
%NEXT% | URL of the Next page of the home page. |
%NEXTLABEL% | Name of the Next page of the home page. |
The following table describes the use of classes name in the creation of report style sheets:
Class names | Description |
---|---|
BODY | Defines the background styles for all report pages, except the home page frame and the browser frame page. |
.BROWSERBODY | Defines the background styles for the browser page. |
.HOMEBODY | Defines the background styles for the home page. |
.TEXT | Defines the default font styles for text blocks, like description, annotation, etc. |
.TITLE | Defines the default font styles for the title of the home page. |
TABLE | Defines the default styles for tables. |
TD | Defines the default styles for table cells. |
Table.GRID | Defines the styles for object list tables. |
TABLE.GRID TD.HEADER | Defines the styles for the header cells of object list tables. |
TABLE.GRID TD | Defines the styles for the cells of object list tables of even rows. |
TABLE.GRID TD TD2 | Defines the styles for the cells of object list tables of odd rows. |
Table.FORM | Defines the styles for object card tables. |
TABLE.FORM TD.HEADER | Defines the styles for the cell name of object card tables. |
TABLE.FORM TD | Defines the styles for the cell value of object card tables. |
Table.TEXT | Defines the styles for the tables around the text blocks. |
TABLE.TEXT TD | Defines the styles for the cells of tables around the text blocks. |
Table.TITLE | Defines the styles for the tables around the home page title. |
TABLE.TITLE TD | Defines the styles for the cells of tables around the home page title. |
Table.GRAPHICS | Defines the styles for the tables around graphics. |
TABLE.GRAPHICS TD | Defines the styles for the cells of tables around graphics. |
H1 | Defines the styles for level 1 headings. |
H2 | Defines the styles for level 2 headings. |
H3 | Defines the styles for level 3 headings. |
HR | Defines the styles for separator lines. |
A:LINK | Defines the default colors for non-visited hyperlinks. |
A: VISITED | Defines the default colors for visited hyperlinks. |
A: HOVER | Defines the default colors for highlighted hyperlinks. |
.BROWSER | Defines the default font styles for the browser. |
A.BROWSER:LINK | Defines the default colors for non-visited hyperlinks of the browser. |
A.BROWSER:VISITED | Defines the default colors for visited hyperlinks of the browser. |
A.BROWSER:HOVER | Defines the default colors for highlighted hyperlinks of the browser. |
TABLE.NAVGROUP | Defines the styles for the tables around the navigation buttons. |
TABLE. NAVGROUP TD | Defines the styles for the cells of tables around the navigation buttons. |
.NAVBUTTON | Defines the default font styles for the navigation buttons. |
A.NAVBUTTON:LINK | Defines the default styles for non-visited hyperlinks of the navigation buttons. |
A.NAVBUTTON:VISITED | Defines the default styles for visited hyperlinks of the navigation buttons. |
A.NAVBUTTON:HOVER | Defines the default styles for highlighted hyperlinks of the navigation buttons. |
In a style sheet, you can define font, color, background, size, margin, and alignment for each class name.
Copyright (C) 2007. Sybase Inc. All rights reserved. |
![]() |