Reporting

Hi,
i am a new ruby on rails user.
while in my project, i have displayed some data from db in tabular form
contain a header , body and footer.
now there is a print page option.
so when i print the data (consist of 4-5 pages), the header comes on the
first page, i want the header of the report to come on each page of
report.

so any solution.
thanks

hi,guys,
this is not rails problems,only html is key point.this link may help you .
http://www.terminally-incoherent.com/blog/2009/10/12/repeating-html-table-headers-on-each-printed-page/

Thanks!

thead {display: table-header-group;}

it is working fine.