S
small pig
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure MakeReport1(Form: TForm;
ATitle: string;
JustPreview : boolean= true);
var
I: integer;
AD: TDataset;
AR: TCustomQuickRep;
Camps: TStringList;
begin
Camps := TStringList.Create;
with Formdo
for i:=0 to ComponentCount-1do
begin
if (Components is TDBEdit) then
Camps.Add(TDBedit(Components).DataField);//就是这步
AD:=TDBEdit(Components).DataSource.DataSet;
end;
AR:=Nil;
QRCreateList(AR, Nil, AD, ATitle, Camps);
end;
ATitle: string;
JustPreview : boolean= true);
var
I: integer;
AD: TDataset;
AR: TCustomQuickRep;
Camps: TStringList;
begin
Camps := TStringList.Create;
with Formdo
for i:=0 to ComponentCount-1do
begin
if (Components is TDBEdit) then
Camps.Add(TDBedit(Components).DataField);//就是这步
AD:=TDBEdit(Components).DataSource.DataSet;
end;
AR:=Nil;
QRCreateList(AR, Nil, AD, ATitle, Camps);
end;