Export XYCharts from Exploration to image file

Hello Amibroker Fans & Gurus

My AB version : 6.20pro

I would like to know if it's possible and how export programmaticly to PNG/JPG file the graphic sheets generate by the wonderful XYChartSetAxis and XYChartAddPoint functions in the Exploration Tabs like it's possible for Charts windows.

EnableScript("jscript");
<%

function multiCapture(Ticker)
{
pixelh=1920;
pixelv=1080;
export_dir="C:\\temp\\";
AB = new ActiveXObject("Broker.Application");
ADS = AB.Documents;
ADS.Item(0).Name = Ticker;

ADS.Item(0).ActiveWindow.SelectedTab=0;
ADS.Item(0).ActiveWindow.ExportImage(export_dir+Ticker+"_chart0.png",pixelh,pixelv);

}
%>

script=GetScriptObject();

script.multiCapture(Name());

Thanks in advance for your help

Best regards
Didier

1 Like

No, Analysis is not a chart window and does not have ExportImage method.
See documentation of AnalysisDoc object:
https://www.amibroker.com/guide/objects.html#AnalysisDoc

Use only methods that are documented and use them as documented.

The only way to "export" exploration XYcharts is to make a screenshot using for example Windows PRINT SCREEN key.

OK thanks @Tomasz