unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, rpcompobase, rpvclreport, StdCtrls;
type
TForm1 =
class(TForm)
Button1: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
VCLReport1: TVCLReport;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
VCLReport1.Execute;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
VCLReport1 := TVCLReport.Create( TForm1);
VCLReport1.Filename := '
<Pfad zur Report-Datei';
VCLReport1.Preview := True;
end;
end.