Pagination by Group

  • Last update:August 25, 2025
  • Overview

    Expected Effect

    Pagination by group means that data is paginated and displayed by group, where each group occupies a separate page.

    For example, a report was originally paginated by paper size, but you now want it to paginate by shipper region, displaying all data for one region on the same page.

    Implementation Method

    You can set Paginate Before Row before each group of data or Paginate After Row after each group of data.

    Example One

    Template Preparation

    For details, you can download the template Repeating Header Rows on Every Page.cpt.

    Pagination by Group Configuration

    To set up group pagination by ShipperRegion in cell A4, since it is in the middle of the table, you cannot directly set pagination on the ShipperRegion cell. Instead, you need to set Paginate Before Row along with the header.

    1. Parent Cell Setting

    Because repeated header rows are set, each group of data starts from the header. You need to set Left Parent Cell of cell A1 to cell A4 (where ShipperRegion is located), as shown in the following figure.

     1.png

    2. Paginate Before Row Setting

    Proceed as follows if you want to achieve pagination before each group of data. Select cell A1, choose Cell Attribute > Others, and tick Paginate Before Row, as shown in the following figure.

     2.png

    Page Setting

    To prevent data already paginated by group from being split again due to page height limitations, you need to adjust the page size to maximize the page height.

    Choose Template > Page Setting from the menu bar, and set Paper Size to A1 [594x841 mm], as shown in the following figure.

     3.png

    Effect Display

    Save the template, and click Pagination Preview. The following figure shows the effect.

     gif4.gif

    The template can be previewed on the DataAnalyst app and HTML5 terminal.

    Template Download

    For details, you can download the template Pagination by Group.cpt.

    Example Two

    Template Preparation

    For details, you can download the template Cross Report.cpt.

    Pagination by Group Configuration

    Repeat Title Row and Repeat End Row Setting

    1. Select the first line row to the third line, right-click the mouse, and select Repeat Title Row, as shown in the following figure.

     5.png

    2 Select the fifth row, right-click the mouse, and select Repeat End Row, as shown in the following figure.

     6.png

    Grouping and Pagination Setting

    1. Parent Cell Setting

    Select cell A5, choose Cell Attribute > Expansion, set Left Parent Cell to A4, and set Expansion Direction to No Expansion, as shown in the following figure.

    iconNote:
    Paginate Before Row means the page paginates before the selected row, making the current row the first row of the second page.

     7.png

    2. Pagination After Row Setting

    Select the fifth row, choose Cell Attribute > Others, and tick Paginate After Row, as shown in the following figure.

    iconNote:

    Paginate After Row means starting a new page from the line following the selected row, making the current row the last line of the first page.

    8.png

    Effect Display

    Save the template, and click Pagination Preview. The following figure shows the effect.

     9.png

    The template can be previewed on the DataAnalyst app and HTML5 terminal.

    Notes

    Page Setting and Paginate Before Row/After Row Taking Effect Simultaneously

    Paginate Before Row, Paginate After Row, and Page Setting take effect simultaneously. When table data exceeds the current page size, the table will first paginate according to the page size set in Page Setting, then paginate according to Paginate Before Row or Paginate After Row. Page Setting must ensure the complete display of the set number of paginated rows to achieve the expected group pagination effect.

    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy