Number Total Pages
Posted: Fri Nov 17, 2023 3:18 pm
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
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