Number Total Pages

Number Total Pages

Postby Silvio.Falconi » 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7066
Joined: Thu Oct 18, 2012 7:17 pm

Re: Number Total Pages

Postby paquitohm » Fri Nov 17, 2023 5:37 pm

Hi,

TImprime techique for stamping total pages from Rafa Thefull consist in write on .wmf/.emf after finish impresion
paquitohm
 
Posts: 266
Joined: Fri Jan 14, 2022 8:37 am

Re: Number Total Pages

Postby Silvio.Falconi » Sat Nov 18, 2023 6:59 pm

paquitohm wrote:Hi,

TImprime techique for stamping total pages from Rafa Thefull consist in write on .wmf/.emf after finish impresion



?????????

1) I wrote i using Treport class of fwh
2) I not wrote another class
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7066
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests

cron