# Print Screen

**URL:** <https://forum.inductiveautomation.com/t/print-screen/2621>\
**Category:** Ignition\
**Created:** [February 9, 2011, 12:48pm UTC](https://forum.inductiveautomation.com/t/print-screen/2621 "2011-02-09T12:48:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peadair](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@peadair](https://forum.inductiveautomation.com/u/peadair)\
**Post date:** [February 9, 2011, 12:48pm UTC](https://forum.inductiveautomation.com/t/print-screen/2621/1 "2011-02-09T12:48:06Z")

</div>

Is there a way for me to have a print button on the screen through out the project that will allow me to press and it will print the entire screen at which i am looking at?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [February 9, 2011, 3:54pm UTC](https://forum.inductiveautomation.com/t/print-screen/2621/2 "2011-02-09T15:54:59Z")

</div>

To print the current window that is open, put this in a button action performed script.

```auto
obj = system.gui.getParentWindow(event)
printJob = system.print.createPrintJob(obj) 
printJob.showPrintDialog = 0
printJob.orientation = system.print.LANDSCAPE
printJob.print()
```

To print everything currently visible on teh screen, for example, the main screen plus docked menus, popups, etc, use this code.

```auto
obj = system.gui.getParentWindow(event).parent
printJob = system.print.createPrintJob(obj) 
printJob.showPrintDialog = 0
printJob.orientation = system.print.LANDSCAPE
printJob.print()
```

---

<div class="post-metadata">

**Author:** ![leversole](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@leversole](https://forum.inductiveautomation.com/u/leversole)\
**Post date:** [January 30, 2020, 9:16pm UTC](https://forum.inductiveautomation.com/t/print-screen/2621/3 "2020-01-30T21:16:11Z")

</div>

Digging up another oldie! I can print a window from a button no problem…I want to print the current window from a client menu…I assume event does not apply because it is a menu…have tried to reference the window by common means and create the print job but nothing is working.

Have tried several different iterations of this…

```auto
obj = system.gui.getParentWindow(event)
#obj = system.gui.getWindow('ShedMap') 
  

printJob = system.print.createPrintJob(obj)
printJob = showPrintDialog = 0
printJob.orientation = system.print.LANDSCAPE
printJob.print()

```

Anybody printing from a menu?

Thanks

---

<div class="post-metadata">

**Author:** ![Eric\_Porteous](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/eric_porteous/32/39223_2.png) [@Eric\_Porteous](https://forum.inductiveautomation.com/u/Eric_Porteous)\
**Post date:** [November 8, 2022, 1:38pm UTC](https://forum.inductiveautomation.com/t/print-screen/2621/4 "2022-11-08T13:38:48Z")

</div>

We use a similar script to print current window. is there a way to Print All, where it would print multiple windows? Or Create a PDF of all of the windows?
