Change data source before print
Change data source before print

I am using the datatables with ajax, pagination and buttons.
The table shows only the results of the page, until then everything normal and right.
I would like to know if I can click on the button to print(view, export), remove the page and make a new query on the server. In this way the printing will have all the results available.
Is it possible to do that?
This discussion has been closed.