Focal Point
Page Numbering per Page Break

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3941018331

November 24, 2004, 06:16 PM
<Krysti710>
Page Numbering per Page Break
I have a report that is by "agent". The whole report is 100 pages long. I have page breaks by "agent" so we can distribute each agent's section to him/her separately. So, for example, the first agent's section is only 1 page so the page number should be Page 1 of 1. The second agent's section is 5 pages so the page number should start over for him, Page 1 of 5, Page 2 of 5 and so on. If I just use the regular "Page <TABPAGENO of <TABLASTPAGE", it just numbers them Page 1 of 100, Page 2 of 100 and so on.

Does anyone know if this is possible to do?

Thanks for any and all help Smiler

Krysti
November 24, 2004, 06:23 PM
<Pietro De Santis>
ON|BY} fieldname PAGE-BREAK REPAGE
November 24, 2004, 06:47 PM
jimster06
The REPAGE will not reset the total number of pages but consider the following:

DEFINE FILE CAR
COUNTER/I5 WITH BODYTYPE = IF COUNTRY NE LAST COUNTRY THEN 1 ELSE
IF COUNTER GE &LNE THEN 1 ELSE COUNTER + 1;
PAGENO/I5 WITH BODYTYPE = IF COUNTRY NE LAST COUNTRY THEN 1 ELSE
IF COUNTER EQ 1 THEN PAGENO + 1 ELSE PAGENO;
END
TABLE FILE CAR
HEADING
"THIS IS PAGE <TABPAGENO OF <MAX.PAGENO "
SUM MAX.PAGENO NOPRINT BY COUNTRY
PRINT RCOST BY COUNTRY PAGE-BREAK REPAGE
BY PAGENO NOPRINT PAGE-BREAK
BY CAR BY MODEL
BY BODYTYPE
END
-RUN
December 02, 2004, 04:11 PM
<Krysti710>
Hi Jimster,

Thanks for getting back to me so quickly and sorry it took so long to get back to you. I got caught up in some other stuff and just finally had a chance to get back to this.

It seems we're on the right track, but what is &LNE?

Thanks so much for your help!

Christy Smiler
December 02, 2004, 05:22 PM
jimster06
&LNE is lines per page.
December 02, 2004, 06:03 PM
<Krysti710>
Am I supposed to set it as something?
December 03, 2004, 12:32 AM
jimster06
Set it to how many lines you want per page: eg -SET = 55; where the hyphen is in position 1.
December 03, 2004, 12:33 AM
jimster06
Better
-SET &LNE = 55;
December 06, 2004, 03:18 PM
<Krysti710>
Thanks Jim, works great! Just one more small question. For some reason there are extra spaces:

Page 1 of 1

instead of:

Page 1 of 1.

People are really picky here. Have you come across this and know a way to fix it?
December 08, 2004, 02:37 PM
jimster06
Your example got squeezed but I think I understand the question.
What is the output format you are using? Also platform.
When I execute in WF to HTML there is no issue.