If the row height is fixed, you can calculate the number of pages in advance because you will know how many rows will be on each page.