Report With Different TotalLine

hai there , i want to make report with different totaline between Last Page and the other pages…

because for the last page I want to save area for signature…

fr example for last page i just want 20 lines, but the other pages i want to use 30 lines

here is the code I made for the page…

MaxLinesPerPage :=30;
MaxLinesPerPage2 :=20;
TotalPage := 0;
TotalLine := 0;
shipline.RESET;
shipline.SETRANGE(“Document No.”,“No.”);
shipline.SETRANGE(“Do not Print”,FALSE);
TotalLine := TotalLine + shipline.COUNT;
TotalLine := TotalLine + shipline.COUNT;
TotalPage := ROUND((TotalLine/MaxLinesPerPage),1,’>’);