Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear sir/madam

I have table student with a 100 records and displaying all records in page . I want to print all records but only 10 records in one page and records from 11 must be displayed on next page with header and footer.Header and footer is required in every page.

please help me.
Posted
Comments
Maciej Los 31-Jul-14 6:56am    
Do not repost!
Mohibur Rashid 21-Aug-14 21:12pm    
Try MPDF, TCPDF

1 solution

a) You need to create 10 tables.
b) Do every table in separate div.
c) Add as header for example a separate table to every "table-div", do same for footer (maybe you want to set pagenumber; if all header/footer are the same you could also use the same elements for all pages).
d) Give footer a css-classname, e.g. "footer", with the attribute/value: "page-break-after: always;"

remark: With javascript you could do it without a preview-site. Without javascript you need to create a preview.

link: w3schools[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900