请问如何在QRedort里实现多栏目的明细主从打印??急!!!在线等
例如: 产品**1 产品**2 产品**3 ..
--------------------------------------------
原料1 用量 原料1 用量 原料1 用量
原料2 用量 原料2 用量 原料1 用量
原料3 用量 原料3 用量 原料1 用量
. . . . . .
例如: 产品**1 产品**2 产品**3 ..
--------------------------------------------
原料1 用量 原料1 用量 原料1 用量
原料2 用量 原料2 用量 原料1 用量
原料3 用量 原料3 用量 原料1 用量
. . . . . .
while not qyweek.Eof do
begin
new(Plab);
Plab^:=tqrlabel.Create(self);
Plab^.Parent:=rep^.Bands.DetailBand;
Plab^.ParentFont :=true;
Plab^.Caption :=datetostr(qyweek.fieldbyname('checkdate').asdatetime);
Plab^.Top :=Current;
Plab^.Left :=39;
dispose(plab); new(plab);
plab^:=tqrlabel.Create(self);
plab^.parent:=rep^.Bands.DetailBand;
Plab^.ParentFont :=true;
plab^.Caption :=qyweek.fieldbyname('orderno').asstring;
plab^.Top :=current;
plab^.Left :=109;
dispose(Plab);
....................
方法雖然笨,但可以隨心所欲