# Restrict the number of Records in a page

Hi All,

I would like to know how to restrict the number of records that should appear per page in a report in other words how to implement "pagination" in CrystalXI ?

Thanks in Advance!

Meena

##### Former Employee replied

Hi Meenakshi,

This can be done based on your repot, if you design a plain report without groups then write this formula:

WhilePrintingRecords;

Numbervar x;

x:=x+1;

Place this formula in detail section and go in Section Expart select detail --select New page after then give this formula:

Numbervar x;

If x>= 25 then true

Write one more formula and place this in your page header:

WhilePrintingRecords;

Numbervar x:=0;

This will print only 25 details lines in each of your pages.

Thanks,

Sastry