You should look into how to manage printing with CSS. You can set up two CSS files, one included on web and another when printing. During printing, you have a class in the CSS that sets your header and footer tables to "display:none;" or "visibility:none;" (one of those will work better than the other, can't remember which right now).
We used this at my last job for allowing printing of reports off client websites and it worked great.