IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#58285 - 06/17/22 03:13 PM Overflow works except for last page
SveyHarling Offline
OL Newbie

Registered: 05/13/22
Posts: 13
Hi,

I am working on a Presstalk, it looks like it is going ok except for the last page not overflowing.

Something must me wrong with the exiting loop:

until((trim(@(&iLigneEnCours+1,1,5))='') or &iLigneEnCours=&current.lpp)

I have provided the resultant pdf, the last page is the problem, I want one more overflow page.

Tx for your help,

Yves


define(&i,integer,0)
&iNbLignesAffichees:=0
setstyle(&style1)
translate(.9886,4.55)


For(&i,0,1,&iNbPersonnes-1)
&iLigneDebut:=(&i*41)+23
&iLigneEnCours:=&iLigneDebut
&iNbLignesAffichees:=&iNbLignesAffichees+1

show(trim(@(&i+3,1,99)))
crlf(0)
translate(2.75,0)
Repeat()
show(trim(@(&iLigneEnCours,1,99)))
crlf(.181)
&iNbLignesAffichees:=&iNbLignesAffichees+1
&iLigneEnCours:=&iLigneEnCours+1

if(&iNbLignesAffichees=35)
crlf(.2)
show(trim('-NEXT PAGE SUIVANTE-'))
showpage()
setstyle(&style1)
&iNbLignesAffichees:=1
@header()
translate(3.7386,4.55)
crlf(0)
endif()
until((trim(@(&iLigneEnCours+1,1,5))='') or &iLigneEnCours=&current.lpp)
translate(-2.75,0)
crlf()
Endfor()



sample

Top
#58286 - 06/17/22 03:24 PM Re: Overflow works except for last page [Re: SveyHarling]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
You only do a showpage when you reach 35. You migth want to check after the until if you have still lines that haven't been displayed on a page and if so, do a showpage


Edited by Jean-Cédric (06/20/22 10:03 AM)
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#58287 - 06/20/22 09:49 AM Re: Overflow works except for last page [Re: SveyHarling]
SveyHarling Offline
OL Newbie

Registered: 05/13/22
Posts: 13
Tx Jean-Cedric, I will try that.

Top