The number of lines per page is not constant it varies with the papersize and font size.
How ever if you want to keep these things constant , then use the following approach.
Fix your top ang bottom page margin.
Fix your page size.
now your details section will allways print same no. of lines.
Also you may use keep together options along with new page after.
If still does not work, then your problem needs further details.