Chart of each exploration stock

Hello All,
I have a AFL written and the exploration gives the stocks in run time.

For each stock which is presented in the exploration, I wish to save the current chart with Ticker name.

Could you please guide me how to go about this.

The below snippet will convert the current screen into image, but how would I open the current explored ticker to load on screen.

AB = new ActiveXObject("Broker.Application");
AW = AB.ActiveWindow;
AW.ExportImage( "C:\\wamp\\www\\twitteroauth-master\\example.gif", 1280, 800 ); // 640, 480 are pixel dimensions

Moderator comment: Use CODE TAGS as without them the code gets corrupted. I fixed it now.

Here you can find a similar thread: