# system.print.createPrintJob

**URL:** <https://forum.inductiveautomation.com/t/system-print-createprintjob/11871>\
**Category:** Ignition\
**Created:** [June 27, 2016, 7:10pm UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob/11871 "2016-06-27T19:10:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Curlyandshemp](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Curlyandshemp](https://forum.inductiveautomation.com/u/Curlyandshemp)\
**Post date:** [June 27, 2016, 7:10pm UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob/11871/1 "2016-06-27T19:10:45Z")

</div>

anyone have an example of how to use scripting function system.print.createPrintJob() to print a screen?

I want to automatically print a window with an EasyChart based on an event from scripting.

Thanks

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [June 27, 2016, 7:49pm UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob/11871/2 "2016-06-27T19:49:56Z")

</div>

There’s an [example](https://docs.inductiveautomation.com/display/DOC/system.print.createPrintJob) in the docs. Could you tell us what you need to know that’s not in the example?

---

<div class="post-metadata">

**Author:** ![Curlyandshemp](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Curlyandshemp](https://forum.inductiveautomation.com/u/Curlyandshemp)\
**Post date:** [June 28, 2016, 1:05am UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob/11871/3 "2016-06-28T01:05:46Z")

</div>

The example is attached to a button. My requirement is I need to on an event, open a window with an Easy Chart, then print that chart.

This is a an application were Ignition is logging data for several CIP ( Clean In Place ) systems. On completion of a CIP program I need Ignition to populate an Easy Chart with the CIP run data, then print.

I know how to get the CIP run chart data to display on completion, just can’t figure out how to use the script function system.print.createPrintJob() after opening a Window with the CIP run data.

---

<div class="post-metadata">

**Author:** ![Curlyandshemp](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Curlyandshemp](https://forum.inductiveautomation.com/u/Curlyandshemp)\
**Post date:** [June 30, 2016, 10:26pm UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob/11871/4 "2016-06-30T22:26:42Z")

</div>

> [@KathyApplebaum](#):
>
> There's an [example](https://docs.inductiveautomation.com/display/DOC/system.print.createPrintJob) in the docs. Could you tell us what you need to know that's not in the example?

Figured it out on my own. Since I am automatically switching to the screen to print, just need to pass 'Root Container' as the parameter:  
job = system.print.createPrintJob('Root Container')
