关于fastReport
比如有如下记录:
col_1 col_2 col_3 <int>
---------------------------------
a a 2
b ada 3
......
......
现要求打印上面记录,且打印行份数为col_3数,即上面打印结果应是:
a a
a a
b ada
b ada
b ada
请问如何实现?
[解决办法]
ding
[解决办法]
偶最近也在用FastReport 4, 顺便帮你解决了一下.
fast report 脚本如下:
procedure Page1OnManualBuild(Sender: TfrxComponent);
var
i,x: Integer;
begin
MasterData1.DataSet.First;
for i:=1 to MasterData1.DataSet.RecordCount do
begin
Engine.ShowBand(MasterData1);
for x:=2 to Memo3.Value do
Engine.ShowBand(MasterData1);
MasterData1.DataSet.Next;
end;
end;
begin
end.