How can I print a disclaimer at the bottom of every printed page?
How can I print a disclaimer at the bottom of every printed page?
![pmconsulting](https://secure.gravatar.com/avatar/a8a009d0beee24b4dec0902856c11a82/?default=https%3A%2F%2Fvanillicon.com%2Fa8a009d0beee24b4dec0902856c11a82_200.png&rating=g&size=120)
Link to test case: https://rpeproductcatalog.com/product-list-std/
Debugger code (debug.datatables.net): N/A
Error messages shown: none
Description of problem:
I'm using he browser's print function triggered by clicking the Print button at the top of the datatable.
Everything prints fine. I have a disclaimer with a dynamic date at the bottom of the entire table which prints on the last page of the printed version.
Is it possible to place the disclaimer into a footer and have it printed at the bottom of every printed page?
Answers
It looks like the
running()
position property in CSS is what you want. You could usemessageBottom
to create the HTML, and that add that CSS into your document, which the print button will copy across to the print view.What I couldn't find is how widely that is supported in browsers. Hopefully there will be good support given it is 2014, but since MDN and Can I Use don't list it... I'm not sure! If you find out, let us know![:) :)](https://datatables.net/forums/resources/emoji/smile.png)
Allan
It's even easier than that. My table has
<thead>
<tr>
<td>
...
So I just added
<tfoot>
<tr>
<td colspan="xx">
...
Whatever is in the header and footer is printed on every page automatically.
Check it out (takes a while to load): https://rpeproductcatalog.com/product-list-lrg/
Awesome! Thanks for letting me know.
Allan