rvdbfdataprovider TRVReportDbfDataProvider [LCL]


<< Click to display table of contents >>

rvdbfdataprovider TRVReportDbfDataProvider [LCL]


A data provider receiving data from DBF tables, for Lazarus.

Unit RVReportDbfDataProviderLaz;


TRVReportDbfDataProvider = class (TRVReportCustomDBDataProvider)



This component provides data for a report generator component from DBF tables contained in the specified directory (FilePath property).

This data provider handles the following data queries:

table name

table name with filter

A table name must include extension, for example: MyTable.dbf

An optional filter expression may follow the table name after comma, for example: Companies.dbf, COMPANYID=1

For the syntax of filters, see TDbf Tutorial

To use this component, assign it to DataProvider property of TRVReportGenerator.

TRVReportDbfDataProvider introduces the properties:

property FilePath: String;
property FilterOptions: TFilterOptions;

Internally, the component uses temporal TDbf components to handle data queries. The data provider properties and events are assigned to these components. If you want to assign additional properties to them, use OnDataSetCreated event.

In addition to the default query processing, you can provide another DataSet component in OnCreateDataSet event. This DataSet is not necessary needed to be TDbf.

See also

Definitions of Report Workshop terms

Data queries