There are various properties and functions which you can use to influence the layout of a table. Also see chapters Creating Statistical Reports With Footers, Drilldown Reports (Increase Detail Level), Page Layout and Overview of Properties.
See also:
Printing Header Lines and Footer Lines Again
Defining the Size of the Table Variably
Creating a Conditional Page Break
Outputting Free Content Before and After a Table
Anchored Lines (Overlapping Cells)