to FCU(彩色铅笔)
我也遇到了需要把空白填充成格子的问题,我的报表很简单,有一个masterdata,masterfooter,现在我在masterfooter上加入脚本 while Engine.FreeSpace > Child1.Height do
Engine.ShowBand(Child1) ;
但我的masterfooter是有内容的,所以需要显示,可是这样又有一个问题就是如果我一页刚好能显示7行就满了,那我本次查询恰好是7条数据的时候就发现我在第二页上面只显示masterfooter的内容,填重不了空白的地方为格子,这个要怎么解决呢?
procedure Footer1OnBeforePrint(Sender: TfrxComponent);
var i:integer;
begin
i := PageLine;
if i = 0 then i := PageMaxRow;
while (i < PageMaxRow) do
begin
i:=i+1;
engine.ShowBand(Child1);
end;
end;
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
Page1Line :=<line#> mod Page1MaxRow;
// if (PageLine = 1) and (<line#> > PageMaxRow) then Engine.newpage;
if (Page1Line = 0) then Page1Line := Page1MaxRow;
end;