Page 1 of 1

Add LegendPalette Tool with VBScript

Posted: Mon Feb 04, 2008 1:54 pm
by 15046980
Hi,

I want to add to my web chart LegendPalette Tool.

I try to use following code

Code: Select all

 With Chart8 
   .Tools.Add(37)   
   .Tools.Items(0).Active = True  
   .Tools.Items(0).asLegendPalette.Series = .Series(0)    
 End With 
But it does not work.
What is my mistake?

Thanks in advance,
Danila.

Posted: Mon Feb 04, 2008 3:20 pm
by narcis
Hi Danila,

Code below works fine for me here. Which is the exact problem, tool can't be displayed or it isn't displayed properly? Are you using latest TeeChart Pro v8.0.0.3 ActiveX version available at the client area?

Thanks in advance.

Posted: Tue Feb 05, 2008 7:09 am
by 15046980
Hi,
I add this tools:

Code: Select all

   .Tools.Add(37)    
   .Tools.Items(0).Active = True 
there is an empty legend without values

after

Code: Select all

  .Tools.Items(0).asLegendPalette.Series = .Series(0) 
At attempt display of page, alert window:
Internet Explorer has encountered a problem witch an add-on and needs to close

TeeChart Pro v8.0.0.2 ActiveX
Windows xp pro IE7,
Windows Server 2003 IE6

Posted: Tue Feb 05, 2008 9:12 am
by yeray
Hi Danila,

Maybe you are trying to use Legend palette with an unaccepted series. Note that this tool only works for 3D series (Surface, Contour, Tower,...)

Posted: Tue Feb 05, 2008 12:57 pm
by 15046980
Hi,

Contour series is used.

Tools were added with the «Editing» with no errors.
:? Error occurs while adding this Tools in VBScript.


Thanks in advance,
Danila.

Posted: Wed Feb 06, 2008 8:57 am
by narcis
Hi Danila,

Finally we have been able to reproduce this issue here and added it (TA05012798) to our defect list to be fixed for next releases.