Search code examples
crystal-reports

Insert page number in Crystal Report


I'm building a Crystal report. I want to insert a page number for each page. So, I have insert page number then in every page of my report, I can see

1
2
3
4

but now I want to insert this numeration:

1 of 4
2 of 4
3 of 4
4 of 4

How ca I do this?


Solution

  • In the field-explorer there are special-fields. Take the pre-defined field called "Page N of M".

    Alternatively you can create a formula with the following content:

    ToText(PageNumber,0) & " of " & ToText(TotalPageCount,0)
    

    (The 0 in the ToText-function removes the decimals from the page number.)