Dose anybody know whats wrong with my export image jscript?
I want to export chart images to a folder, these script did work, 
exported images, but Amibroker crashed every time, whats wrong?
thanks

//
AB = new ActiveXObject("Broker.Application");
Win = AB.ActiveWindow;
Qty = AB.Stocks.Count;

for( i = 0; i<Qty; i++ )
{
Stk = AB.Stocks(i);
Doc = AB.Documents.Open( Stk.Ticker );
Win.ExportImage("c:\\temp\\" + Stk.Ticker + ".png", 800, 600 );
Doc.Close();
}
//

Reply via email to