Fix report_header and report_footer warnings when printing report. Also fix
the link to the detailed report so it will automatically run.