You can put one on your report as well and then select the option "Hide when printing" for your button. That way it doesn't show up on the printed report.
"Hide when printing" is in the inspector, on the position tab under "Object Visibility"
You can also just make sure you never get stranded on a report.
A report is made for printing, you can add s script set for printing and then go back to the original layout.
Or you can use the following combination of script steps:
- Go To Layout [Print Layout]
- Enter Preview Mode
- Pause Script
- Enter Browse Mode
- Go To Layout [Original]
During the pause you will be able to print or save a pdf of your report.
Then when you click continue the script will bring you back to the original layout.
As a "back up" in case I as developer or a user finds a "hole" in the system and get's stranded on that layout while in browse mode, I add a button to the main menu on the layout and use "sliding and visibility" to specify "hide when printing" so that the user can see the button in browse mode, but it won't show on hard copy, PDF's or when in preview mode.