QuickReport (bands). QRBand ( TPanel) .
(. 1):
- TQRBand - , - (, , , .). TQRBand , . BandType, "" ( , "" .). : rbTitle , rbPageHeader , rbColumnHeader , rbDetail ( , , ), rbPageFooter , rbOverlay , , rbGroupHeader , rbSubDetail "" Detail-, rbGroupFooter , rbSummary ). BandType rbTitle
- TQuickReport ( ).
- TQRLabel, QRBand1 ( , Caption , ).
. 1.
QuickReport1 Preview Report, , .
BandType QRBand1 rbDetail TTable. DataBase , , BCDEMOS, TableName , , CUSTOMER.DB, Active true. TDataSource DataSet Table1, DataSource QuickReport DataSource1. TQRDBText QRBand1( , ), DataSource DataSource1 DataField. , TQRDBText (. 2).
. 2.
|
|
QuickReport Preview Report, .
. TQRBand.
c , TQRBand ( QRBand2,...., QRBand5) BandType rbTitle, rbColumnHeading, rbDetail rbPageFooter. TTable DatabaseName BCDEMOS, TableName Customer, Active true. TDataSource DataSet Table1 DataSource QuickReport DataSource1. TQRLabel TQRBand, Caption .
QRDBText QRBand BandType, DetailBand DataSource DataSource1, DataField Company, Phone Fax. , TQRSysData ( , , , , .) TQRBand BandType, rbPageFooter Data qrcPageNumber, Text .
, . 3.
Preview Report .
.3.
"master-detail"
"master-detail". TTable, DatabaseName BCDEMOS, TableName ORDERS.DB, Active true. MasterSource DataSource1. MasterFields, master/detail (. 4) CustNo. CustNo Add, OK.
. 4. master/detail
TDataSource, DataSet Table2. TQRBand (c QRBand6). TQRDetailLink, , DataSource DataSource2. Master QuickReport, DetailBand QRBand6. BandType QRBand6 rbSubDetail.
, TQRDBText QRBand6, DataSource DataSource2, DataField OrderNo AmountPaid. TQRLabel (. 5).
. 5. "master-detail".
|
|
- Preview Report QuickReport (.6).
. 6. "master-detail".
, QuickReport DataSource, , .