You use the summary and footer bands of the DataWindow object the same way you use summary pages and page footers in a printed report:
The contents of the summary band display at the end, after all the detail rows; this band often summarizes information in the DataWindow object
The contents of the footer band display at the bottom of each screen or page of the DataWindow object; this band often displays the page number and name of the report