Trigger Report viewer open in new tab button from script

I'm using perspective with the report viewer I noticed there is a button on the report viewer to open the report in a new tab with the ability to print to a local printer using this method.

image

Is there any way to replicate this same functionality through scripting?
The idea is to fill out values/parameters of a report have a button the user can click and it will generate the report in a new tab without actually seeing the report.

Not this part. At least, not in Perspective. You can connect your printer(s) to the gateway, and send from there, or use Vision.

After some testing I figured out a way to do this:

This is what the screen looks like:
ItWorks2

Users can input the values then the report generates and opens in a new tab allowing users to print to any printer connected to the device.