# Printing an easy chart w/out print dialog

**URL:** <https://forum.inductiveautomation.com/t/printing-an-easy-chart-w-out-print-dialog/2345>\
**Category:** Ignition\
**Created:** [November 15, 2010, 9:04pm UTC](https://forum.inductiveautomation.com/t/printing-an-easy-chart-w-out-print-dialog/2345 "2010-11-15T21:04:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [November 15, 2010, 9:04pm UTC](https://forum.inductiveautomation.com/t/printing-an-easy-chart-w-out-print-dialog/2345/1 "2010-11-15T21:04:15Z")

</div>

Trying to put a button in to print an Easy Chart w/out a print dialog.(Precursor to having the print called automatically by a script)

Tried the following

```auto
job = system.print.createPrintJob(event.source.parent.getComponent('Easy Chart'))
job.showPageFormat = 0
job.print()
```

I also tried

```auto
graph = event.source.parent.getComponent('Easy Chart')
graph.print()
```

It didn’t seem to like any argument I passed unlike the report component.

Ideas?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 16, 2010, 5:34pm UTC](https://forum.inductiveautomation.com/t/printing-an-easy-chart-w-out-print-dialog/2345/2 "2010-11-16T17:34:35Z")

</div>

This script worked for me:

[code]chart = event.source.parent.getComponent(“Easy Chart”)

# Get the interior section of the chart

innerChart = chart.getComponent(0).getComponent(0)  
job = system.print.createPrintJob(innerChart)  
job.showPrintDialog = 0  
job.print()[/code]

---

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [November 16, 2010, 8:07pm UTC](https://forum.inductiveautomation.com/t/printing-an-easy-chart-w-out-print-dialog/2345/3 "2010-11-16T20:07:07Z")

</div>

Thanks!

I went w/ this

```auto
def graphPrint13(chart = event.source.parent.getComponent("Easy Chart")):
	import system
	# Get the interior section of the chart
	innerChart = chart.getComponent(0)
	job = system.print.createPrintJob(innerChart)
	job.orientation = system.print.LANDSCAPE
	job.showPrintDialog = 0
	job.print()
#Print 10secs after property change
system.util.invokeLater(graphPrint13, 10000)
```

You have to make your chart height/width ratio ~14/19 for a standard letter size print and I turned off Pen Manipulation.
