Dynamic page number or Reset page number & counter | Community
Skip to main content
June 1, 2009
Question

Dynamic page number or Reset page number & counter

  • June 1, 2009
  • 18 replies
  • 13445 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

18 replies

June 1, 2009

On the Mater page there is a pagination tab. This will control what number to start the page numbering at for each file in your batch process. Simply click on the Start At radio button and enter the number you want to start at. If you are stil having issues, post your form and we can have a look.

Paul

samijaprAuthor
June 2, 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.

June 2, 2009

Can you post the form and the data file and I will have a look and see if I can see what is wrong.

Paul

samijaprAuthor
June 6, 2009

Paul,

Thanks for your help

I attached the form and the interface

June 8, 2009

I do not know what you attached but there is no workable form in there. Do you have an XDP or a PDF that you are using?

Paul

samijaprAuthor
June 9, 2009

I figured it out thanks any way
If anyone looking for a solution for the same issue
he solution is as follows
create 3 numeric fields in the header of the table
total
counter 1
counter 2
the total is to count the number of pages of each document
in initialization event
total = total + 1 ;
the counter 1 is to make the counter of the pages from 0 to total (invisible)
in calculate event
if ( counter 1 < total ) then
counter 1 = counter 1 + 1 .
elseif( counter 1 >= total ) then
counter 1 = 1
counter 2 to show the page number of the document
in layout ready
counter 2 = 1
in calculate event
counter 2 = counter 1 + 1
Note: this is the logic with little modification create the code
Regards
Sam or Muneer

October 1, 2009

I am trying to do the same thin (or at least, it sounds like the same thing).  I tried the solution but it didn't work for me.  The Total, Counter1, and Counter2 all kept their original values (1/0) throughout the batch of documents.

Can someone please HELP?!

I have attached an example of the PDF.  Please note that there are two documents in this batch but there could be one or many more.  Each subset  needs to have it's own page # of ## and start at 1.  So instead of the entire batch in this example being page 1 of 8, it should be page 1 of 4 for each of the two documents in the batch.  Also, is there a way not to count the blank page?  I am using ALD 8.0.  the template is comprised of a master page with the label "DOCUMENT CHANGE PROPOSAL", a blank content area and a subform (page 1) which repeats depending on how many records are in the XML data it is bound to.

Thanks!

Peace and Blessings,

Nikki

October 1, 2009

Do you have a sample data file that has multiple records so we have some test material?

October 1, 2009

Did you see the PDF that I attached to my last post?  Is it not enough?  The data is on the classified system and it takes awhile to tranfer it to the system i'm on right now.

Peace and blessings,

Nikki

October 1, 2009

Did you see the PDF that I attached to my last post?  Is it not enough?  The data is on the classified system and it takes awhile to tranfer it to the system i'm on right now.

Peace and blessings,

Nikki