# rptline

> Source: https://manual.pvxplus.com/report-writer/object-oriented-interface/rptline/overview

The **rptline** object is a data member of the **[rptgroup](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptgroup/overview)** 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](https://manual.pvxplus.com/report-writer/object-oriented-interface/pvxreport/overview)** or **[rptgroup](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptgroup/overview)** **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](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptcell/overview)** 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.<br>\|  \|  \|  \|<br>\| --- \| --- \| --- \|<br>\| **0** \| Normal Line Advance \| ***(Default)*** The next line of the report is advanced by the height of the line just printed. \|<br>\| **1** \| Overlay Next Line \| The current and next lines are printed at the same vertical location. \|<br>\| **-1** \| Overlay Previous Line \| The current and previous lines are printed at the same vertical location. \|<br>See **[Line Advancement](https://manual.pvxplus.com/report-writer/designing-a-report/creating-the-report-layout/line-advancement)**.<br>*(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](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptcell/overview)** object using the next available sequence number. Only cells with data or formatting need to have an **rptcell** object created for them.  <br>  <br>**CellCount** for the line is incremented. Returns the object handle if successful, **0** if not. |
| AddFilter(*Setidx*) | Creates a new **[rptfilter](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilter/overview)** object within the **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object specified by *Setidx* using the next available sequence number. One object is created for each filter set.  <br>  <br>The sequence number can be used as the index number to identify the object when using the **RemoveFilter( )** and **GetFilter( )** methods.  <br>  <br>**FilterCount** for the **rptfilterset** object is incremented. Returns the object handle if successful, **0** if not. |
| **AddFilterSet( )** | Creates a new **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object. If one already exists, returns address to current.  <br>  <br>**FilterSetCount** is set to **1**. Returns the object handle if successful, **0** if not. |
| **CellCount( )** | Returns the number of cells in a line.<br>Note:  <br>A cell contains data or formatting information. Empty cells do not have an assigned object. |
| **ClearFilters( )** | Removes the **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object and resets **FilterSetCount** to **0**. |
| FilterCount(\[*Setidx*\]) | Returns the number of **[rptfilter](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilter/overview)** objects in the **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** 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](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** objects in the set (**1** or **0**). |
| GetCell(*idx*) | Returns the handle for an **[rptcell](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptcell/overview)** object.  <br>  <br>*idx -* Sequence number of the **rptcell** object.  <br>  <br>This allows access to all **rptcell** properties. Returns **0** if the arguments are invalid. |
| GetCondition$(*Setidx,Filteridx*) | Returns a string containing the PxPlus expression associated with a filter.  <br>  <br>*Setidx* - Index indicating which **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object.  <br>  <br>*Filteridx* - Index of the **[rptfilter](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilter/overview)** object. |
| GetFilter(*Setidx,Filteridx*) | Returns the handle for an **[rptfilter](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilter/overview)** object.  <br>  <br>*Setidx* - Index indicating which **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object.  <br>  <br>*Filteridx* - Index of the **rptfilter** object. |
| **GetFilterSet( )** | Returns the handle for the **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object. This allows access to all **rptfilterset** properties and methods. Returns **0** if not successful. |
| RemoveCell(*idx*) | Removes an **[rptcell](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptcell/overview)** object from the section.  <br>  <br>*idx -* Sequence number of the cell to be removed.  <br>  <br>If an **rptcell** object is removed, the sequence number of the **rptcell** objects with higher sequence numbers is adjusted down.  <br>  <br>**CellCount** is decremented for the line. Returns the object handle if successful, **0** if not. |
| RemoveFilter(*Setidx,Filteridx*) | Removes an **[rptfilter](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilter/overview)** object.  <br>  <br>*Setidx* - Index indicating which **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** object.  <br>  <br>*Filteridx* - Index of the **rptfilter** object. |
| **RemoveFilterSet( )** | Removes the **[rptfilterset](https://manual.pvxplus.com/report-writer/object-oriented-interface/rptfilterset/overview)** 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.   <br>  <br>*LibName$* - Name of the library file. Can be a simple file name or complete path.  <br>  <br>*LibRef$* - Name of the library layout to be inserted. Returns **1** if successful, **0** if not. |
