L
lili365
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button2Click(Sender: TObject);
var
i,j,x,y:integer;
str:string;
begin
x:=10;
y:=10;
str:='';
with printerdo
begin
begin
doc;
for j:=0 to adoquery2.RecordCount-1do
begin
for i:=0 to adoquery2.FieldCount-1do
begin
str:=str+adoquery2.Fields.asstring;
end;
canvas.TextOut(x,y,str);
adoquery2.Next;
end;
enddoc;
end;
end;
这段代码不能将我的记录正常打印,请大侠们指正
var
i,j,x,y:integer;
str:string;
begin
x:=10;
y:=10;
str:='';
with printerdo
begin
begin
doc;
for j:=0 to adoquery2.RecordCount-1do
begin
for i:=0 to adoquery2.FieldCount-1do
begin
str:=str+adoquery2.Fields.asstring;
end;
canvas.TextOut(x,y,str);
adoquery2.Next;
end;
enddoc;
end;
end;
这段代码不能将我的记录正常打印,请大侠们指正