# Executeanddistribute open report in new tab

**URL:** <https://forum.inductiveautomation.com/t/executeanddistribute-open-report-in-new-tab/56039>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [February 11, 2022, 3:33pm UTC](https://forum.inductiveautomation.com/t/executeanddistribute-open-report-in-new-tab/56039 "2022-02-11T15:33:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcaudle](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jcaudle](https://forum.inductiveautomation.com/u/jcaudle)\
**Post date:** [February 11, 2022, 3:33pm UTC](https://forum.inductiveautomation.com/t/executeanddistribute-open-report-in-new-tab/56039/1 "2022-02-11T15:33:50Z")

</div>

Does anyone know of a way to open a report pdf in a new tab directly?

Opening a popup with a report viewer has the Open button if its enabled but that adds the steps of opening or downloading before being able to print to your clients default printer.

Current actions for executeAndDistribute do not include open in a new tab.

[system.report.executeAndDistribute - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)](https://docs.inductiveautomation.com/display/DOC81/system.report.executeAndDistribute)

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [February 11, 2022, 5:16pm UTC](https://forum.inductiveautomation.com/t/executeanddistribute-open-report-in-new-tab/56039/2 "2022-02-11T17:16:36Z")

</div>

I think you are missing the fact that when browser “directly” opens a PDF is actually storing the file in a temporal directory.

Anyways, just use this button at the right bottom of the report viewer.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/9199af84d027ee70d62f6cddefb8d17950c6d570.png)  
it will open the report in .PDF in a new browser tab

---

<div class="post-metadata">

**Author:** ![jcaudle](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jcaudle](https://forum.inductiveautomation.com/u/jcaudle)\
**Post date:** [February 11, 2022, 6:18pm UTC](https://forum.inductiveautomation.com/t/executeanddistribute-open-report-in-new-tab/56039/3 "2022-02-11T18:18:51Z")

</div>

I know I can push that button. But can one script that button to be pushed?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 11, 2022, 6:37pm UTC](https://forum.inductiveautomation.com/t/executeanddistribute-open-report-in-new-tab/56039/4 "2022-02-11T18:37:56Z")

</div>

Probably not. Scripts are running on the gateway, not the actual frontend session. Also, browsers generally don’t want you to pop up new tabs unsolicited.
