reporthead;
reportcolumn;
reportdetail;
reporttail;

解决方案 »

  1.   

    回复: kylion(凯林)
    详细点~
      

  2.   

    有个办法,你估计一下纸张的大小,也就是打印页面大小,能有几个序号可排放.如每一页为6,则程序中来判断后打印出~~~
    提示:无论用adotable或adoquery你都可得到你所需要的count,然后就比较
      

  3.   

    只是合计的问题。加另外一个datasetcount,在每页合计标签beforprint事件里加入datasetcount.commandtext:='select count(金额) from  表 where No between LastNo and'+ intto str(dataset.RecNo);
    datasetcount.open;
    value:=inttostr(datasetcout.count);
    datasetcout.close;
      

  4.   

    在报表中打到哪里,源Dataset就移动那里。
    所以可以充分利用beforprint作一些事情。
      

  5.   

    kylion(凯林) reporttail 是什么??? 
      

  6.   

    用beforeprint也可以实现啊:
    在最后的合计QRlabel的beforeprint判断源dataset的记录是不是到末尾了:
    if dataset.recno=dataset.recordcount then value:=...
    else value:='';
      

  7.   

    用beforeprint也可以实现啊:
    在最后的合计QRlabel的beforeprint判断源dataset的记录是不是到末尾了:
    if dataset.recno=dataset.recordcount then value:=...
    else value:='';