This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Print functionality

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 and Regards,
Sree
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can not remove the default header and footer with JavaScript. That is a browser setting that has to be changed manually. There are activeX controls that can remove it, but that is IE only and your site has to have the right security restrictions for it to work. Probably would be a big headache.

For printing headers and footers on every page. [Guess you are talking about tables] http://lesliefranke.com/2004/09/printing-table-header-footer-with-css/

Eric
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks and Regards
Sree
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do research with CSS Print Media

Eric
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks & Regards
Sree
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

waiting for reply...

Regards,
Sree
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic