home *** CD-ROM | disk | FTP | other *** search
- unit RepGrid;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- vivrep20, ComCtrls;
-
- type
- TRepGridForm = class(TForm)
- VividReport: TVividReport;
- VRPage: TVRPage;
- VRBand1: TVRBand;
- VRBand2: TVRBand;
- VRBand3: TVRBand;
- VRBand4: TVRBand;
- VRGrid: TVRGrid;
- VRSysInfo: TVRLabel;
- VRRepTitle: TVRLabel;
- procedure VRGridRows1BeforePrint(Sender: TObject;var APrint: TBeforeAction);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- RepGridForm: TRepGridForm;
-
- implementation
-
- uses Main, dm;
-
- {$R *.DFM}
-
- procedure TRepGridForm.VRGridRows1BeforePrint(Sender: TObject;var APrint: TBeforeAction);
- begin
- if MainForm.Grid.SelectedRows.IndexOf (BioLifeDM.RepTable.Bookmark) = -1 then APrint := baNoPrint;
- end;
-
- end.
-