SAP Knowledge Base Article - Public

2290916 - How to display the total number of pages for each group on a report in Crystal Reports?

Symptom

  • Is it possible to display a total number of page for each group?
  • How to display the total number of pages for each group on a report in Crystal Reports?

Environment

  • SAP Crystal Reports 2016
  • SAP Crystal Reports 2020

Resolution

  • To display the total number of pages, uses the special field: TotalPageCount
  1. In Crystal Reports, create a report based on any data sources.
      
  2. Add a group.

  3. From the Design tab, right click on the Group Footer and select: Section Expert

  4. In the Section Expert window, go to Paging tab, and check the following options: 
    • Reset Page Number After
    • New Page After
           
         
  5. Click OK

  6. Go to the Field Explorer.

  7. From Special Fields, select the TotalPageCount field and place in either Page Header or Page Footer section.

The total number of pages for each group will be displayed on each page of the report.

Keywords

count, pagenumber, total, cr, crystal, group, pages per group, number of pages, crystal reports , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To

Product

SAP Crystal Reports 2016 ; SAP Crystal Reports 2020