Triggering "Save data for Excel" button from a script

Hello,

Is it possible to trigger the “Save data for Excel” function of an Easy Chart from another button (not the component in-built one but another one, placed on the window)?
I looked for a special scripting function of the Esay Chart (such as the doClick() for a button) but could not find anything.

Regards.

easyChart = event.source.parent.getComponent('Easy Chart') easyChart.exportExcel('myFileName.xls'); worked for me when placed in a button…

It worked for me too. Thank you.