home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / delphi / ODA10 / _SETUP.1 / DemoReport.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-04-06  |  596 b   |  35 lines

  1. unit DemoReport;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   DB, DBTables, StdCtrls, Quickrep, ExtCtrls;
  8.  
  9. type
  10.   TFormReport = class(TForm)
  11.     BtnRun: TButton;
  12.     procedure BtnRunClick(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18.  
  19. var
  20.   FormReport: TFormReport;
  21.  
  22. implementation
  23.  
  24. uses DemoReportDef;
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TFormReport.BtnRunClick(Sender: TObject);
  29.   begin
  30.     FormReportDef.Qry.Active:= True;
  31.     FormReportDef.Rpt.Preview;
  32.   end;
  33.  
  34. end.
  35.