on 05-26-2009 6:59 AM
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.
Plz help I am really trying to solve this for a week now.
I am using 7.1 ADL
thanks
Edited by: Sami Japr on May 26, 2009 1:59 PM
Edited by: Sami Japr on May 27, 2009 1:35 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I change to 8.1 ALD
but still couldn't find the solution for the problem
is there a way to create a counter to a field and then assign it as page number.
I am really trying to solve this issue some help or any help will be appreciated.
Sami
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.