# Print a screen when you select a tag

**URL:** <https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004>\
**Category:** Ignition\
**Created:** [June 8, 2011, 4:42pm UTC](https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004 "2011-06-08T16:42:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [June 8, 2011, 4:42pm UTC](https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004/1 "2011-06-08T16:42:18Z")

</div>

Hello,

I wonder if you can send to print a screen when you select a tag.  
and from a button too.

how to do this?

Greetings

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [June 8, 2011, 5:40pm UTC](https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004/2 "2011-06-08T17:40:21Z")

</div>

this is how I have my script to send to print from a button  
but an error flag.

as I can do it without leaving me the error.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/61ad82345036a8ec4ae4a712a5401a3341afc23b.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/9927e225b5ba837e50e2d90545956a07bae607b3.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/377e2bd415775f5726e577fc95d1455dbfdfc03c.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2bc32784e014d13765f1f8a24a3e85fb7f9e0417.jpg)

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [June 8, 2011, 8:23pm UTC](https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004/3 "2011-06-08T20:23:31Z")

</div>

The function calls are case-sensitive.`window = system.gui.getparentwindow(event)` should be `window = system.gui.getParentWindow(event)`You can see more about that function [here](http://www.inductiveautomation.com/support/usermanuals/ignition/system_gui_getparentwindow.htm).

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [June 8, 2011, 9:38pm UTC](https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004/4 "2011-06-08T21:38:01Z")

</div>

Thanks, Robert.

know how I can send print when an alarm is activated.

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [June 8, 2011, 11:27pm UTC](https://forum.inductiveautomation.com/t/print-a-screen-when-you-select-a-tag/3004/5 "2011-06-08T23:27:41Z")

</div>

The best way to do that is to set up a Client Event Script based on a Tag Change to call that function. For that to work, you need to have a client open when the tag changes. In addition to that, each client will run this script and print out a copy of the screen. The best way to get around that is to use the System Tags (IPaddress or HostName) to determine who prints the screen.
