How to add the page number at every page of the print when printing data?

How to add the page number at every page of the print when printing data?

MudassirAmeenMudassirAmeen Posts: 1Questions: 1Answers: 0

Hey, i need your help. i am using datatables and it is very handy when i print the data. now my client ask me to print the page number in the footer of every page with custom css. the default footer of print is not good. so i need to display it the footer of every page. not in footer but at the end of every page. the page numbers should be like this.
Page 1 of 20
Page 2 of 20
...
Page 20 of 20
i have searched everything but nothing solved my problem. if you can solve this so please answer to this question. Thanks

Answers

  • allanallan Posts: 62,982Questions: 1Answers: 10,364 Site admin

    As far as I am aware there is no option for that in HTML.

    This SO thread might have a possibility, but you'd need to use the customize callback for the print button to modify the document, and I think that might be very difficult with a table.

    Allan

Sign In or Register to comment.