Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

How to print with page numbers from the "print button"?

$
0
0

The things I normally would do in css and html do not seem to be working when I use the Datatables "print" button...

print button is set up like this:

 buttons: [
    {extend: 'print',
        text: 'Print Visible',
        autoPrint: true,
        exportOptions: { columns: ':visible' },
        customize: function (win) {
              $(win.document.body).find('table').addClass('display').css('font-size', '10px');
       }
},

And the css for the page looks like this:

@page {
    margin: .25in;

    @bottom-right {
        content: counter(page) " / " counter(pages);
    }
}

But I see no page numbers. How can I get page numbers on the bottom right of my printed pages?

Any help is appreciated.


Viewing all articles
Browse latest Browse all 2364

Trending Articles