You need to sue to your opthalmologist. Formulas\Custom needs to be Formulas\\Custom
d > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of murthysuresh > Sent: Thursday, September 13, 2007 8:48 PM > To: [email protected] > Subject: [amibroker] saving chart as images thro afl > > hello > I can now finally save charts as a image thro afl. here is the code. > However there is one glitch that i cannot figure out. if the path ic > c:\program files XXXXX it does not work. however if i put the js file > in my c:\temp it works. i cannot understand why there should be this > difference. > > //AlertIf(True,"Exec > C:\\temp\\exportImage.js" ,"Launching ext app for picture",3,2); > AlertIf(True,"Exec C:\\Program > Files\\AmiBroker\\Formulas\Custom\\exportImage.js" ,"Launching ext > app for picture",3,2); > > > > The js file is > function DateDemo(){ > > var d, s = ""; > > d = new Date(); > s += d.getFullYear(); > s += d.getDate() ; > > s += (d.getMonth() + 1) + "_" ; > s += d.getHours() ; > > s += d.getMinutes() ; > s += d.getSeconds() ; > > > > > > > return(s); > > } > > > AB = new ActiveXObject("Broker.Application"); > Win = AB.ActiveWindow; > Win.ExportImage( "c:\\temp\\" + Win.document.name+ "_" + DateDemo() > +".bmp", 800, 600 ); > > > > > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > > >
