SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Printing a header on every page?

    Hello,

    I work for a company, and one of the requirements of the website is that when people print a certain report, that the company header is on top of every page (the number of pages is dynamic, along with the data in it).

    I do not know of a way to control this, can someone help?

    I tried muddling around with the page-break option in CSS, but its tough to know WHERE to insert it, because I have to use javascript to calculate the current height of the page...dynamically insert a page break there...and dynamically put a header there. This is VERY VERY messy and is prone to lots of errors...does anyone know of a better way?

  2. #2
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /bump

  3. #3
    Ding Fries are Done! inter4design's Avatar
    Join Date
    Mar 2003
    Location
    usa
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not that i know of...i had this same probably about a year ago
    DoesItMatter
    - anyone seen my underwear?

  4. #4
    Brevity is greatly overrated brandaggio's Avatar
    Join Date
    Dec 2005
    Posts
    1,424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mshah2k
    Hello,

    I work for a company, and one of the requirements of the website is that when people print a certain report, that the company header is on top of every page (the number of pages is dynamic, along with the data in it).

    I do not know of a way to control this, can someone help?

    I tried muddling around with the page-break option in CSS, but its tough to know WHERE to insert it, because I have to use javascript to calculate the current height of the page...dynamically insert a page break there...and dynamically put a header there. This is VERY VERY messy and is prone to lots of errors...does anyone know of a better way?
    With "real" CSS this is not yet possible due to poor browser support.

    As a "hack" a table row for the header and footer is a potential "solution".

    This article seems to be a good primer.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •