Skip to Content
0
Oct 30, 2012 at 04:00 PM

Running page total and group page total

36 Views

Hi

I have a requirement on an existing Crystal XI R2 report.

This reports print a new page after each group footer and resets page number after the group.

Publish in the report is 'Page N of M'

I would also like to show a running page number and total.

For example report has 2 groups. First group is 2 pages long, second group is 3 pages. Page numbers are to be output as follows:



Page n of m Run page x of y Group 1 1 of 2 1 of 5
2 of 2 2 of 5 Group 2 1 of 3 3 of 5
2 of 3 4 of 5
3 of 3 5 of 5

I'm comfortable with getting a running page number.

My problem lie with getting the 'of' part.

I'm not sure how to get the total number of pages across all groups (5 - in the example above).

Or if I was to change my 'reset page number after', how to get the total number of pages in each group.

Any ideas?