[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] saving chart as images thro afl



PureBytes Links

Trading Reference Links

You need to sue to your opthalmologist.

Formulas\Custom  needs to be Formulas\\Custom 

d

> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of murthysuresh
> Sent: Thursday, September 13, 2007 8:48 PM
> To: amibroker@xxxxxxxxxxxxxxx
> 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
> 
> 
> 
> 



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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/