This function can be used in formula fields to get the number of pages in the report.
Note: It is not supported to use this function in some property formulas, e.g. it is not supported to use it in the suppress formula for a section.
If you like to suppress the page footer on the last page, you could set a suppress formula for the page footer section like this "not onlastrecord". The problem is that this will not work in all cases, e.g. if there is a page break in the detail section or you have more than one detail section and there is a page break between the detail sections of one record.
The solution for all cases is more complicated. Therefore follow these steps:
TotalPageCount
Number value