How to put group element on the header/footer?

Ex: there are four departments, each department have some employees. Requirement: 1)Each department is on the header and the employees correspond that department is on the detail. 2)Each page display page number of the report on the footer.