# Need to print report by clicking on button in Perspective

**URL:** <https://forum.inductiveautomation.com/t/need-to-print-report-by-clicking-on-button-in-perspective/56359>\
**Category:** Ignition\
**Created:** [February 21, 2022, 11:47am UTC](https://forum.inductiveautomation.com/t/need-to-print-report-by-clicking-on-button-in-perspective/56359 "2022-02-21T11:47:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjuyadav95.m](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@manjuyadav95.m](https://forum.inductiveautomation.com/u/manjuyadav95.m)\
**Post date:** [February 21, 2022, 11:47am UTC](https://forum.inductiveautomation.com/t/need-to-print-report-by-clicking-on-button-in-perspective/56359/1 "2022-02-21T11:47:09Z")

</div>

I need a script/function to print the report (report viewer) in perspective like ctrl+p does the work …any solution for this?

is there any way to open a new tab to display only report and let ctrl+p key gets pressed automatically or triggered by clicking on the button also fine

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 21, 2022, 1:34pm UTC](https://forum.inductiveautomation.com/t/need-to-print-report-by-clicking-on-button-in-perspective/56359/2 "2022-02-21T13:34:39Z")

</div>

No. Browsers do not permit this. They require user input to print (among many other security restrictions).

If you need to print a report without user interaction, set up a network printer and use `system.report.executeAndDistribute()` to send to that printer from the gateway.

---

<div class="post-metadata">

**Author:** ![manjuyadav95.m](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@manjuyadav95.m](https://forum.inductiveautomation.com/u/manjuyadav95.m)\
**Post date:** [February 22, 2022, 12:54pm UTC](https://forum.inductiveautomation.com/t/need-to-print-report-by-clicking-on-button-in-perspective/56359/3 "2022-02-22T12:54:24Z")

</div>

Thanks a lot 👍 👍 🙂 🙂
