# Get Pagination Info

A tutorial showing how to get pagination info from the paginated render mode in a SpreadJS ReportSheet

## Content

ReportSheet supports [paginated preview mode](/spreadjs/docs/v18/features/reportsheet/reportsheet/render-mode) as well as formula-based functions to get pagination information.
To get the pagination information from ReportSheets, you can use the following functions.

* **R.CURRENTPAGE()**: To get the current page number.
* **R.PAGESCOUNT()**: To get the page count.

The following image shows a template sheet where the CONCAT function concatenates all the pages and displays the current page number out of the total number of pages.

![RS-PageInfofunction-template](https://cdn.mescius.io/document-site-files/images/ef9b66d1-0ae2-4e94-b8cb-f9f893aacc8d/RS-PageInfofunction-template.32dcdf.png?width=700)

The orders report generated from the above TemplateSheet is shown below.

![RS-PageInfofunction-output](https://cdn.mescius.io/document-site-files/images/ef9b66d1-0ae2-4e94-b8cb-f9f893aacc8d/RS-PageInfofunction-output.720a17.png)