Printing an easy chart w/out print dialog

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

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

I also tried

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

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

Ideas?

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]

Thanks!

I went w/ this

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.