rptline
The rptline object is a data member of the rptgroup object, delegated to store and manipulate a report line definition. One object is created for each report line in the section in the order that they are to be displayed.
The pvxreport or rptgroup GetLine( ) methods can be used to retrieve the object handle for an rptline object, which allows access to all the object's methods and properties.
The rptline object has its own data member, the rptcell object, to define the cells in the line. It has methods to create and access these objects.
rptline Properties
The following table lists the properties of the rptline object:
Property | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
Height | Height of the line in points (72's of an inch). Must be a positive number. | |||||||||
Library$ | Name of the library file containing the layout to be inserted in this location. Can be a simple file name or complete path. Read only. Set using the SetLibraryReference( ) method. | |||||||||
LibraryReference$ | Name of the library layout to be inserted in this location. Must be unique. Read only. Set using the SetLibraryReference( ) method. | |||||||||
Overlay | Line advancement setting.
See Line Advancement. (The Overlay property was added in PxPlus 2021.) |
rptline Methods
The following table lists the methods of the rptline object:
Method | Description |
|---|---|
AddCell( ) | Creates a new rptcell object using the next available sequence number. Only cells with data or formatting need to have an rptcell object created for them. |
AddFilter(Setidx) | Creates a new rptfilter object within the rptfilterset object specified by Setidx using the next available sequence number. One object is created for each filter set. |
AddFilterSet( ) | Creates a new rptfilterset object. If one already exists, returns address to current. |
CellCount( ) | Returns the number of cells in a line. |
ClearFilters( ) | Removes the rptfilterset object and resets FilterSetCount to 0. |
FilterCount([Setidx]) | Returns the number of rptfilter objects in the rptfilterset object specified by Setidx. If Setidx is omitted, returns the number of rptfilter objects in the first filter set. |
FilterSetCount( ) | Returns the number of rptfilterset objects in the set (1 or 0). |
GetCell(idx) | Returns the handle for an rptcell object. |
GetCondition$(Setidx,Filteridx) | Returns a string containing the PxPlus expression associated with a filter. |
GetFilter(Setidx,Filteridx) | Returns the handle for an rptfilter object. |
GetFilterSet( ) | Returns the handle for the rptfilterset object. This allows access to all rptfilterset properties and methods. Returns 0 if not successful. |
RemoveCell(idx) | Removes an rptcell object from the section. |
RemoveFilter(Setidx,Filteridx) | Removes an rptfilter object. |
RemoveFilterSet( ) | Removes the rptfilterset object. If the rptfilterset object is removed, FilterSetCount is set to 0. Returns the object handle if successful, 0 if not. |
SetLibraryReference(LibName$,LibRef$) | Sets the name of the layout and the library containing the layout to be inserted. |