Page x of y

I am trying to create an ending page count on my report so that the the report will show page x of y. Has anyone been able to do this?

Navision creates the report pages on the fly and can’t predict the total number of pages on forehand. In some occasions you can do a pretty good prediction yourself, when the number of lines on a page is exactly known (usually only when there are no conditional lines, like text-lines on an invoice). In that case you do a Count on the table providing the lines and divide this by the number of lines per page. Round up the outcome. John