I want to print a receipt of supermarket I designed it : section 1 header section 2 the head of table section 3 the table section 4 report footer section 1 has the total bill
if number of rows more than 40 it print the report footer in new page with new head of table and new empty table
I want to print the report footer at the end of the table and doesn't depend on number of rows in table how?