git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.SDAC@3 6f543ec7-021b-7e4c-98c9-62eafc7fb9a8
50 lines
927 B
ObjectPascal
50 lines
927 B
ObjectPascal
unit Main;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, SdacVcl,
|
|
ExtCtrls, QuickRpt, Db, MemDS, StdCtrls, QRPrntr, DBAccess, MSAccess;
|
|
|
|
type
|
|
TfmMain = class(TForm)
|
|
MSConnection: TMSConnection;
|
|
btPreview: TButton;
|
|
Connect: TButton;
|
|
Disconnect: TButton;
|
|
procedure btPreviewClick(Sender: TObject);
|
|
procedure ConnectClick(Sender: TObject);
|
|
procedure DisconnectClick(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
fmMain: TfmMain;
|
|
|
|
implementation
|
|
|
|
uses Report1;
|
|
|
|
{$R *.DFM}
|
|
|
|
procedure TfmMain.btPreviewClick(Sender: TObject);
|
|
begin
|
|
qrReport1.Preview;
|
|
end;
|
|
|
|
procedure TfmMain.ConnectClick(Sender: TObject);
|
|
begin
|
|
MSConnection.Connect;
|
|
end;
|
|
|
|
procedure TfmMain.DisconnectClick(Sender: TObject);
|
|
begin
|
|
MSConnection.Disconnect;
|
|
end;
|
|
|
|
end.
|
|
|