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;
- VRPage: TVRPage;
- VRBand1: TVRBand;
- VRBand2: TVRBand;
- VRBand3: TVRBand;
- ComName: TVRLabel;
- VRBand4: TVRBand;
- Category: TVRLabel;
- VRBand5: TVRBand;
- VRBand6: TVRBand;
- CatLabel: TVRLabel;
- VRBand7: TVRBand;
- VRBand8: TVRBand;
- SpecLabel: TVRLabel;
- VRBand9: TVRBand;
- VRBand10: TVRBand;
- SpecNameLabel: TVRLabel;
- SpecName: TVRLabel;
- LenCmLabel: TVRLabel;
- VRBand11: TVRBand;
- VRBand12: TVRBand;
- VRBand13: TVRBand;
- VRBand14: TVRBand;
- VRRepTitle: TVRLabel;
- VRSysInfo: TVRLabel;
- SpecNo: TVRLabel;
- LenCm: TVRLabel;
- Graphic: TVRLabel;
- Notes: TVRLabel;
- procedure VividReportBeforePrint(Sender: TObject;var APrint: TBeforeAction);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- RepForm: TRepForm;
-
- implementation
-
- uses Main, dm;
-
- {$R *.DFM}
-
- procedure TRepForm.VividReportBeforePrint(Sender: TObject;var APrint: TBeforeAction);
- begin
- if MainForm.Grid.SelectedRows.IndexOf (BioLifeDM.RepTable.Bookmark) = -1 then APrint := baNoPrint;
- end;
-
- end.
-