This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi All, Thanks a lot in advance. We are printing some report which might go 2,3,4....pages.Print(). How can we avoid Default header and footer in the print? And, we have some header and footer for our application how can we repeat this header and footer if page goes more than one. Please help me.
Thanks a lot for your reply. I am not talking about table header. Header of the page. For example there are three frames/Tiles Frame 1 will contains my header like logo and some images tobe shown on all pages and same Frame3 footer. And Frame/Tile2 is actual contenet. I think now your clear with what Iam required.
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.
Joined: Nov 08, 2001
Do research with CSS Print Media
Joined: Jul 05, 2008
Thanks a lot for your replys. With this can we remove default header and footer of print. i.e., Url and date in the bottom . page number at the top.
No, that's under the control of the browser, not of the web page. I think some browsers -but not all- let the user configure that, but there's nothing you can do on the web page to affect it.
Joined: Jul 05, 2008
Thanks a lot for your reply. Atlease can we repeat Header and footer of our page if conetent of the page is going beyond one page. I want Header and footer should be displayed in all the pages. These header actual my page header not table headers.