I added a "Print" button to my view:
I wanted to know if there is any way, either in PHP or JS, that when you click on that button, send me to this screen (which is the one that opens when we press CTRL + P)
Thanks and regards!
Through Javascript you can use the following function:
window.print();
And place it in the action of the button you want to print.