|
|
|||
Home Products Downloads Registered users Support Prices Order Primary Subscription |
|
||
TxlDataSource PropertiesAlias published read/writeA pseudonym for a dataset.
property Alias: string;
Is used in field formulas instead of referencing to DataSource.Name property. Useful in case of a report built on several datasets of the same name. Alias is equal to Name by default. Column public read onlyReturns the column number of the leftmost column of the range.
property Column: integer;
A range in Excel is described by its top left corner coordinates (Row, Column) and dimensions (RowCount, ColCount). This properties can be useful in event handlers of the TxlReport and TxlDataSource classes. ColCount public read onlyReturns the number of columns in the range.
property ColCount: integer;
A range in Excel is described by its top left corner coordinates (Row, Column) and dimensions (RowCount, ColCount). This properties can be useful in event handlers of the TxlReport and TxlDataSource classes. DataSet published read/writeBinds a dataset to a report.
property DataSet: TDataSet;
Specify the name of an existing dataset. At run-time use the following syntax:
Report.DataSources[0].DataSet := Table1;
If DataSet is nil then arbitrary data transfer is assumed and OnGetDataSourceInfo, OnGetFieldInfo and OnGetRecord events are triggered. Enabled published read/writeEnables (disables) the data transfer from the corresponding dataset.
property Enabled: boolean;
This property can be useful in report debugging. MacroAfter published read/writeContains the full name of the VBA procedure invoked after data transfer.
property MacroAfter: string;
The full name contains the module name, dot, and the procedure name itself. The procedure must be declared public. Example:
Report.DataSources[0].MacroAfter := 'Module1.BuildChart';
See also OnMacro event. MacroBefore published read/writeContains the full name of the VBA procedure that must be invoked after data transfer.
property MacroBefore: string;
The full name contains the module name, dot, and the procedure name itself. The procedure must be declared public. Example:
Report.DataSources[0].MacroBefore := 'Module1.DoBuildRange';
See also OnMacro event. MasterSource public read/writeIs used in order to specify the range, containing the current range (specified in the Range property
property MasterSource: TxlDataSource;
Use this property in order to create master-detail relationships between datasets. In order to break a master-detail relationship, specify nil. Even if you specify master-detail relationships correctly you have to create a correct template - all ranges should be nested correctly. MasterSourceName published read/writeIs used in order to specify the range, containing the current range (specified in the Range property
property MasterSourceName: string;
Use this case-insensitive property in order to create master-detail relationships between datasets. In order to specify the name of the master-range use the Alias of the master-range. In order to break a master-detail relationship, specify the empty string. Even if you specify master-detail relationships correctly you have to create a correct template - all ranges should be nested correctly. Options published read/writeContains various settings of the dataset and its range.
property Options: TxlRangeOptionsSet;
default [xrgoAutoOpen, xrgoPreserveRowHeight]
type
TxlRangeOptions = (xrgoAutoOpen, xrgoAutoClose, xrgoPreserveRowHeight);
TxlRangeOptionsSet = set of TxlRangeOptions; xrgoAutoClose (default True) Setting this option to True will automatically close the dataset specified in the DataSet property immediately after its use. If this option is off the dataset will be left open. xrgoAutoOpen (default True) Setting this option to True will automatically open the dataset specified in the DataSet property. If this option is False and a dataset is not open - an exception is raised. xrgoPreserveRowHeight (default True) While processing Range-datasets, XL Report inserts rows in a range. By default, the height of each row is set according to the same of the template. This can cause slowing down the report generation speed. Set this option to False in order to avoid the slowing. Range published read/writeDetermines the name of the range in whose cells you want to transfer the data from the DataSet.
property Range: string;
To transfer the data into a certain range of workbook you must name the range and specify it in the Range property. The cells of this range should contain field formulas on the =DataSetName_FieldName stencil. We describe format of XL Report ranges in Developer's Guide. If Range property is empty, XL Report will transfer to report workbook the current record only. RangeType public read onlyReturns the type of the range.
property RangeType: TxlRangeType; type
TxlRangeType = (rtNoRange, rtRange, rtRangeRoot,
rtRangeMaster, rtRangeDetail);
In order to provide additional possibilities of data transfer and processing, XL Report allows using range and column options. Some of the options can be used in certain range types only.
Report public read onlyPoints to the instance of TxlReport whose DataSources collection this instance of TxlDataSource belongs to.
property Report: TxlReport;
Row public read onlyReturns the column number of the leftmost column of the range.
property Row: integer;
A range in Excel is described by its top left corner coordinates (Row, Column) and dimensions (RowCount, ColCount). This properties can be useful in event handlers of the TxlReport and TxlDataSource classes. RowCount public read onlyReturns the number of columns in the range.
property RowCount: integer;
A range in Excel is described by its top left corner coordinates (Row, Column) and dimensions (RowCount, ColCount). This properties can be useful in event handlers of the TxlReport and TxlDataSource classes. Tag published read/writeThis is a standard property of VCL component classes.
property Tag: integer;
Use it as you wish. |
Components
Developed forDelphi 4, 5, 6, 7 Excel version supportedMS Excel 97 (SR2)
[ Download it ] |