Dynamic page number or Reset page number & counter

Avatar

Avatar
Level 1
samijapr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
samijapr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
samijapr
Level 1

31-05-2009

Hi,

I am trying to reset the page number

dynamic page number
I am trying to print multiple documents in one report, the requirement is to reset page numbers for every document(to start counting from 1)
I don't have control over the size of the document because it is a flow table
I am using page conditional break to finish the document and start a new one but I couldn't change the page number or create a counter to use it as page number.

I am using ALD 8.1

all the design is in the body page the master page is empty.


Is there a way to create a counter and then assign it as page number?

OR

Is there a way to reset the page number back to 1 or 0 ?

OR

Is there a way to create a counter and reset it when using the conditional break ?

I found many solutions but none of them fit to solve this issue, because the dolutions I found were based on fixed number of pages and in my case I can't figgure out the number of pages because it is a flow table.

Sami

View Entire Topic

Avatar

Avatar
Level 1
samijapr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
samijapr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
samijapr
Level 1

02-06-2009

Thanks for you response,

My main problem is that all documents are in one batch, I tried the solution you suggested, but it is not reseting the page number.

My progress now is: I could calculate the total number of pages of each document which will show only in the first only first header of each document [by creating a field with following logic inside the table header

data.mainsub.Table.body.IT_ZCOUNT_SHEET1.DATA.TABLEHEADER1.pagenum.pagenumber = data.mainsub.Table.body.IT_ZCOUNT_SHEET1.DATA.TABLEHEADER1.pagenum.pagenumber +1;

but if I used the same logic in calculate event it show on every page but wrong values

I post both results.