各位:
   我想打印分組報表,並統計每個組的報表總頁數,有什麽方法沒?6.0可以實現,但9.0就不行了。
&&=======================================================================
select Curs_report
update  Curs_report set ctotpage=1
private otpage
otpage=1 select custcode from Curs_report group by custcode into cursor tmptable
select tmptable
go top 
scan all
select * from Curs_report where allt(Curs_report.custcode)==allt(tmptable.custcode) into curs tmptotpage
report form &taliorpath.Report\&ReportName noconsole 
otpage=_pageno 
select Curs_report
update Curs_report set ctotpage=otpage where allt(Curs_report.custcode)==allt(tmptable.custcode)
endscan
&&======================================================================有什麽方法解決不??