Skip to Content
0

Descending Page Number

Mar 05 at 10:13 PM

22

avatar image
Former Member

Hi,

I would like to add a descending page number on crystal forms. It need to create a sort field for another program to pick up.

E.g Check number 1000,1001,1002,1004

I would like Check number 1000 to have the largest page number 4, 1001 page number 3, 1002 page number 2, 1004 page number 1.

I will need to keep the print order by Ascending check number.

Thanks,

Debbie

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Abhilash Kumar
Mar 06 at 08:20 AM
0

Hi Debbie,

Create a formula with this code and place it on the Page Footer:

shared numbervar x;
if pagenumber = 1 then
TotalPageCount 
else
(
    x := x + 1;
    TotalPageCount - x;
)

-Abhilash

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 19 at 05:46 PM
0

Thanks Abhilash,

This almost worked. However it is giving me 0,-1,-2,-3 so if I use this field to sort it is still in ascending order. I need the first page to have 3, then 2 then 1 as the field.

Thanks,

Debbie

Share
10 |10000 characters needed characters left characters exceeded