How I can calculate on Report ( class Treport) the total number of pages ?
local nTotalpages:= ?
oRep:oTitle := TrLine():New( {{|| cf(date())+"- Pagina : "+Str(oRep:nPage,3)+"/"+Str(nTotalpages,3)} }, oRep, 2 )
I tried also with nTotalpages:=:= Round(oRep:nCount/oRep:nPageSize,0)
thanks