"Engine" object This is the most useful and interesting object, which represents a link to the slider (FastReport’s core, which manages report construction). By using the slider’s properties and methods one can construct really exotic report types. Let us examine methods and properties of this object.
Property | Type | Description
CurColumn | Integer | The number of the current column in a multicolumned report. A value can be bound to this property.
CurX | Extended | The current shift of the coordinates on the X-axis. A value can be bound to this property.
CurY | Extended | The current shift of the coordinates on the Y-axis. A value can be bound to this property.
DoublePass | Boolean | Equal to "True," if the report is a two-pass one. Analogous to Report.EngineOptions.DoublePass.
FinalPass | Boolean | Equal to "True," if the last pass of the two-pass report is performed.
PageHeight | Extended | Printable region’s height, in pixels.
PageWidth | Extended | Printable region’s width, in pixels.
StartDate | TDateTime | Time of report running. A counterpart of the <Date> system variable.
StartTime | TDateTime | Time of report running. A counterpart of the <Time> system variable.
TotalPages | Integer | A number of pages in a report. A counterpart of the <TotalPages> system variable. The report should be a two-pass one, so that this variable can be used.
Methods:
Method | Description
procedure AddAnchor (const Text: String) | Adds "anchor" to the list of anchors. See more below.
procedure NewColumn | Creates a new column in a multicolumn report. After the last column, page break is automatically inserted.
procedure NewPage | Creates a new page (page break).
procedure ShowBand(Band: TfrxBand) | Displays a band with a specified name. After displaying a band, the "CurY" position is automatically shifted.
function FreeSpace: Extended | Returns height value of white space left on a page, in pixels.
function GetAnchorPage(const Text: String): Integer | Returns the number of the page, in which the specified anchor is placed.