class PageTemplate
Describes the layout of a page of a report.
Syntax
[<oRef> =] new PageTemplate(<report>)
<oRef>
A variable or property—typically of <report>—in which you want to store a reference to the newly created PageTemplate object.
<report>
The Report object to which the PageTemplate object binds itself.
Properties
The following tables list the properties and methods of the PageTemplate class. (No events are associated with this class.)
Property |
Default |
Description |
|
Background image on the page | |
PAGETEMPLATE |
Identifies the object as an instance of the PageTemplate class | |
(PAGETEMPLATE) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
white |
Background color for the page | |
0 |
Width of lines around elements in the report (0=no grid lines) | |
|
Height of the page in current metric units | |
.75 inch = |
The space between the bottom of the page and the usable area of the PageTemplate | |
.75 inch = |
The space between the left side of the page and the usable area of the PageTemplate | |
.75 inch = |
The space between the right side of the page and the usable area of the PageTemplate | |
.75 inch = |
The space between the top of the page and the usable area of the PageTemplate | |
|
The name of the PageTemplate object | |
|
The PageTemplate object that is used for the following page | |
|
The Report object that contains the PageTemplate | |
|
Width of the page in current metric units | |
Method |
Parameters |
Description |
|
Explicitly releases the PageTemplate object from memory |
Description
A PageTemplate object describes the layout of a page, including its background color or image. It acts as a container for StreamFrame objects and visual components, which represent fixed output, such as a report date and page number.
The location of these objects is relative to (and restricted by) the four margin- properties that dictate the usable area of the page. Changing the marginLeft or marginTop will move everything that’s inside the PageTemplate. A PageTemplate’s dimensions - it’s height and width - correspond to your printer’s current Paper Size settings.
Although you may create multiple PageTemplate objects in a report, for example a different first page or alternating odd and even pages, the Report Designer currently does not support multiple PageTemplate objects visually.
In the Report Designer, the dotted area represents the useable portion of the PageTemplate, with the surrounding white area indicating the margins. The Report Designer shows only that area which corresponds to a PageTemplate.