Hello
I am trying to take a screenshot of the chart. it works fine except
for 1 minor detail which is inconsistent.
i have some text plotted by Plottext. this text appears in some
screenshots and not in others. however it always appears in the chart
at all times.
How can i trouble shoot this discrepency.
oADoc=application.Documents.open( tradeObj.Symbol) #open the symbol
to see
application.LoadLayout
("E:\\Data\\stocks\\Layouts\\DailyLayout.awl") #load the template to
take screenshot
oAWnd = oADoc.ActiveWindow
oAWnd.ZoomToRange(Time.parse(tradeObj.entryDateTime) - (40 *
NO_OF_SECONDS_IN_DAY) ,Time.parse(tradeObj.exitDateTime) + (40 *
NO_OF_SECONDS_IN_DAY))
oAWnd.exportImage
("c:\\temp\\pictures\\Dailyyahooshot.bmp",800,600)