, , - . , (), , , .
, , - , GroupView GroupKey (. 25). , . ORDER BY GROUP BY SQL-.
, , p1 .
:
15. GROUP ( TADOQuery), , :
SELECT * FROM t1, t2, t3
WHERE t1.i1=t2.i1 AND t3.i3=t2.i3
ORDER BY p1
16. Rave ConnectToGroup ( TRvDataSetConnection), GROUP, , DataSet,
17. Rave Reports Designer Reports.rav ( File -> New Report), MyGroupReport
18. File -> New Data Object Direct Data View, ConnectToGroup ( TRvDataSetConnection) Delphi-
19. , Drawing, Bar Code Standard Rave Designer.
20. , Region
( Report)
21. ( Band Report). Text Standard, .. , Text.
, , , ! , , (, DataBand, DataText .) , !
22. , :
( Band2);
( Data Band1);
( Band3).
23. (Band2) (Band3) , (DataBand1) DataText , Bitmap, Text , , , , ..
|
|
24. , , DataView , DataField
25. (Band2, DataBand1 Band3) GroupDataView GroupKey! p1
26. , DataBand1 DataView!
27. BandStyle Band2, , Group Header; Band3, , Group Footer. BandStyle DataBand1, , Print Location
28. (Band2) (Band3) (DataBand1) ControllerBand. , Data Band
. : ( MySimpleReport) (MyGroupReport)
29. Reports.rav
30. , , Delphi- MyProject ( TrvProject) Reports.rav ProjectFile, , TRvRenderXXXX File -> Save As
31. N7 ( ) - OnClick, , MyGroupReport, :
DM.GROUP.Open;
DM.MyProject.ExecuteReport('MyGroupReport');
DM.GROUP.Close;
J