Search found 4 matches: trline

Searched query: trline

by Silvio.Falconi
Tue Nov 28, 2023 8:39 am
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 8440

Re: Calculate total pages

... local cFooter := "Progetto Magazzino - "
local cTitle1 := "title row 1"
local cTitle2 := "title row 2"

local nTotalpages:= oRep:oDevice:cLastPage


oRep:oTitle := TrLine():New( {{|| cf(date())+"- Pagina : "+Str(oRep:nPage,3)+"/"+(nTotalpages)} }, oRep, 2 )



I tried and run ok

thanks Rao
by Silvio.Falconi
Mon Nov 27, 2023 8:13 am
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 8440

Re: Calculate total pages

... this:
"Page : " + cValToChar( nPage ) + ;
" of " + oRep:oDevice:cLastPage

Nages,
There is something not run ok on Treport

https://i.postimg.cc/WzYHVtyx/kk.png

I made

oRep:oTitle := TrLine():New( {{|| cf(date())+"- Pagina : "+Str(oRep:nPage,3)+"/"+(oRep:oDevice:cLastPage)} }, oRep, 2 )
by Silvio.Falconi
Fri Nov 17, 2023 3:18 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Number Total Pages
Replies: 2
Views: 357

Number Total Pages

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
by Silvio.Falconi
Fri Jun 23, 2023 9:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: Number Total Pages
Replies: 2
Views: 375

Number Total Pages

... oRep, oBrw, oDbf,aGroup,nGroup,lEject,afields )


local nTotalpages:=0 // LTrim( Str( Len( oRep:oDevice:oDevice:aMeta ) ) )


oRep:oheader := TrLine():New( {{||cTitle1},{||cTitle2} }, oRep, 0 )
oRep:oTitle := TrLine():New( {{|| cf(date())+"- Pagina : "+Str(oRep:nPage,3)+"/"+Str(nTotalpages,3 ...