PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Page Numbering in Reports
Page Numbering in Reports
Débuté par david egan, 10 oct. 2005 15:12 - 1 réponse
Posté le 10 octobre 2005 - 15:12
Hi
I have a report which needs to reset the pagenumber to 1 on the break (the client code). I have tried iPageNum(1) in both the pre-print and post-print process but the best I can get is for the first client to get page 1 but every subsequent client starts at page 2. I tried setting iPageNum(0) but this gave exactly the same result . Any suggestions would be much appreciated.
David
Posté le 11 octobre 2005 - 18:47
Hi
I have a report which needs to reset the pagenumber to 1 on the break (the client code). I have tried iPageNum(1) in both the pre-print and post-print process but the best I can get is for the first client to get page 1 but every subsequent client starts at page 2. I tried setting iPageNum(0) but this gave exactly the same result . Any suggestions would be much appreciated.
David

this is one of the bugs in the report editor, it seems to generate a page before it generates breaks. There are various ways to cope with that, I apply the following in a break header:
IF vIDWhse = -1 THEN vIDWhse = IDWarehouse; RETURN
IF vIDWhse <> IDWarehouse THEN
vIDWhse = IDWarehouse
iPageEnd() ; iPageNum(1)
END
Regards
mat