# Printing Active Screen

**URL:** <https://forum.inductiveautomation.com/t/printing-active-screen/12085>\
**Category:** General Discussion\
**Created:** [August 30, 2016, 8:07pm UTC](https://forum.inductiveautomation.com/t/printing-active-screen/12085 "2016-08-30T20:07:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgarcher](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rgarcher](https://forum.inductiveautomation.com/u/rgarcher)\
**Post date:** [August 30, 2016, 8:07pm UTC](https://forum.inductiveautomation.com/t/printing-active-screen/12085/1 "2016-08-30T20:07:48Z")

</div>

Does anyone have a way to determine what the active screen currently is and then print it?

---

<div class="post-metadata">

**Author:** ![Connor](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Connor](https://forum.inductiveautomation.com/u/Connor)\
**Post date:** [February 14, 2017, 9:27pm UTC](https://forum.inductiveautomation.com/t/printing-active-screen/12085/2 "2017-02-14T21:27:58Z")

</div>

There are a few ways to determine which screen is active. To better help you, can you explain more exactly what you are trying to do? Do you want to have a button in a navigation bar that just prints the current main window, or something else?

---

<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 15, 2017, 7:56pm UTC](https://forum.inductiveautomation.com/t/printing-active-screen/12085/3 "2017-02-15T19:56:10Z")

</div>

You could use [system.nav.getCurrentWindow](https://docs.inductiveautomation.com/display/DOC79/system.nav.getCurrentWindow) to get the path to the active main window, and then [system.print.printToImage](https://docs.inductiveautomation.com/display/DOC79/system.print.printToImage) to save it to an image file.

---

<div class="post-metadata">

**Author:** ![Connor](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Connor](https://forum.inductiveautomation.com/u/Connor)\
**Post date:** [February 15, 2017, 9:08pm UTC](https://forum.inductiveautomation.com/t/printing-active-screen/12085/4 "2017-02-15T21:08:27Z")

</div>

You can also use system.print.createPrintJob to send it to a printer or print to PDF.
