home *** CD-ROM | disk | FTP | other *** search
- unit Rep;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- vivrep20, ComCtrls;
-
- type
- TRepForm = class(TForm)
- VividReport: TVividReport;
- MasterPage: TVRPage;
- VRBand1: TVRBand;
- VRBand2: TVRBand;
- VRBand3: TVRBand;
- Page2: TVRPage;
- Page3: TVRPage;
- ChildReport: TVividReport;
- ChildPage1: TVRPage;
- ChildPage2: TVRPage;
- VRBand4: TVRBand;
- VRGrid1: TVRGrid;
- VRBand5: TVRBand;
- VRBand6: TVRBand;
- VRGrid2: TVRGrid;
- VRGrid3: TVRGrid;
- VRBand7: TVRBand;
- VRBand8: TVRBand;
- VRSysInfo: TVRLabel;
- VRRepTitle: TVRLabel;
-
- procedure ChildPage2BeforePrint(Sender: TObject; var Print: TBeforeAction);
- procedure ChildReportEndPrint(Sender: TObject; var ARepeat: TAfterAction);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- RepForm: TRepForm;
-
- implementation
-
- uses Dm;
-
- {$R *.DFM}
-
- procedure TRepForm.ChildPage2BeforePrint(Sender: TObject; var Print: TBeforeAction);
- begin
- if not VRGrid3.QueryNewBand (VRBand7,true) then Print := baNoPrint
- else VRBand7.Controller := Nil;
- end;
-
- procedure TRepForm.ChildReportEndPrint(Sender: TObject; var ARepeat: TAfterAction);
- begin
- VRBand7.Controller := VRGrid3;
- VRBand7.BandIndex := 0;
- end;
-
- end.
-