#1 (permalink)  
Old 09-11-2005, 04:36 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Is It Possible To Create A Header That Will Repeat?

I am setting up a printable report, and trying to get all of my CSS, etc. correct so that it will print nicely on a page.

I am curious, though, if it's possible to somehow set up a header that will repeat at the top of every page. In other words, is there maybe some way to set an "overflow:header" or something like that in my CSS?

What I would like to do is this:
I have a header that should print at the top of every single printed page.
I then have a table that should print as many pages as it needs to until the entire table has printed on the page.

So, it should print something like this:
Code:
-------- HEADER --------------
-------- HEADER --------------
-------- HEADER --------------
-------- HEADER --------------
-------- HEADER --------------
_______________________
|                                           |
----------------------------------
|      TABLE PRINTS            |
----------------------------------
|      ON ALL PAGES            |
----------------------------------
|     THAT IT NEEDS           |
----------------------------------
|                                           |
----------------------------------

Then a new page would look like:

-------- HEADER --------------
-------- HEADER --------------
-------- HEADER --------------
-------- HEADER --------------
-------- HEADER --------------
_______________________
|                                           |
----------------------------------
|      THIS IS MORE             |
----------------------------------
|      OF THE TABLE            |
----------------------------------
|     FROM THE FIRST         |
----------------------------------
|              PAGE                    |
----------------------------------
I hope that makes sense.

Any ideas?
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote

  #2 (permalink)  
Old 09-11-2005, 04:41 PM
Allen's Avatar
Administrator
 
Join Date: Dec 2001
Location: Atlanta, Georgia, USA
Posts: 1,049
boy that really would be nice - i will give it some thought
Reply With Quote
  #3 (permalink)  
Old 09-11-2005, 05:21 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Just so you can see a little better example of what I want to do, I've posted an example report on the web.

If you go to http://septiclean.com/pumpandhaul/example.php you will see a blank example report. I would like our logo, the To/From, etc. info, and the header of the main report table all to print at the top of each page (that's the way I do it in Excel right now, which is what we're currently using for our reports).

I found some code that's supposed to allow you to do that (by placing everything that you want repeated within a thead tag, and the rest within a tbody tag), but that doesn't seem to be working for me (the code is supposed to work in Firefox 1.0.3+, and it doesn't for me, and it definitely does not work in Konqueror, but that's not that big of an issue for me).

Anyway - in the example I posted, I've got the code that's supposed to work already implemented.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #4 (permalink)  
Old 09-12-2005, 09:40 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
I just thought I would update you guys.

The example I posted works exactly the way it should in Internet Explorer. It just doesn't work for me in Firefox.

So, if you want to see what I'm trying to do (cross-browser, hopefully), open the example in IE and press Print or Print Preview.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create secure forms? Bluestar Programming and Scripting 3 04-27-2007 01:57 AM
header help, pleeeeeeeeease luke87gt Programming and Scripting 2 06-07-2005 11:50 PM
Create a Form to append to a file Stubin Programming and Scripting 4 02-08-2005 04:28 PM


All times are GMT -5. The time now is 04:40 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter