# Printing from the Gateway

**URL:** <https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [August 29, 2024, 3:55pm UTC](https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330 "2024-08-29T15:55:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [August 29, 2024, 3:55pm UTC](https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330/1 "2024-08-29T15:55:36Z")

</div>

I'm trying to develop a perspective project to print a report to a printer that the gateway is connected to.

When I'm setting up the schedule action in the reports module, I don't see the printers available to the gateway. Only default, microsoft XPS and microsoft print to PDF.

Is there something in the documentation on how this works or how to set it up?

Second question, is there a way to tell the gateway to print with a function?

Thanks!

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [August 29, 2024, 4:37pm UTC](https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330/2 "2024-08-29T16:37:45Z")

</div>

You can do a scripted action on the report schedule and then utilize system.report.executeAndDistribute where you pass the actual printer name in the call.

`system.report.executeAndDistribute(path="Label_Template_1", project="ProjectName", parameters=overrides, action= "print", actionSettings = {"primaryPrinterName":PrinterNameFromGateway, "copies":1})`

---

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [August 29, 2024, 4:40pm UTC](https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330/3 "2024-08-29T16:40:12Z")

</div>

can you print on demand instead of using a schedule?

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [August 29, 2024, 4:41pm UTC](https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330/4 "2024-08-29T16:41:26Z")

</div>

You can call the executeAndDistribute from anywhere.  
A button, a tag change, wherever.

> **[system.report.executeAndDistribute | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-report/system-report-executeAndDistribute)**
>
> Executes and distributes a report.

---

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [August 29, 2024, 4:44pm UTC](https://forum.inductiveautomation.com/t/printing-from-the-gateway/95330/5 "2024-08-29T16:44:02Z")

</div>

thank you!
