unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, QuickRpt, QRCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
QuickRep1: TQuickRep;
TitleBand1: TQRBand;
QRLabel1: TQRLabel;
procedure QRLabel1Print(sender: TObject;
var Value: String);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.QRLabel1Print(sender: TObject;
var Value: String);
begin
Value:=format('%.5d',[strtoint(Value)]);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
QuickRep1.Preview;
end;
end.