home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, DdeMan;
-
- type
- TForm1 = class(TForm)
- DdeClientConv1: TDdeClientConv;
- Button1: TButton;
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.Button1Click(Sender: TObject);
- var
- Cmd : String;
- begin
- with DdeClientConv1 do
- begin
- OpenLink;
- Cmd:='LoadReport "c:\d\r\video\summary.rpt","@Repvar1=<40>,@Repvar2=<'#39'Smith'#39'>"'#0;
- ExecuteMacro(@Cmd[1], False);
- CloseLink;
- end;
- end;
-
- end.
-