This topic is locked

Adding 'Print' button to any page in PHPRunner

1/16/2018 3:32:19 PM
PHPRunner Tips and Tricks
admin
  1. If we want to simplify printing for our clients we can add a custom button to any page named 'Print'
    Here is the code you would need to add to ClientBefore event. All other events should be empty.

window.print();


2. We would also want to hide this button (as well as all other buttons) on the printed page. To do so we need to add the following to 'Custom CSS' section under Style Editor:

@media print

{

.rnr-button, .btn

{

display: none !important;

}

}