Annotation Problem

TeeChart for ActiveX, COM and ASP
Post Reply
norad
Newbie
Newbie
Posts: 13
Joined: Fri Nov 15, 2002 12:00 am
Location: Athens, Greece
Contact:

Annotation Problem

Post by norad » Thu Mar 11, 2004 3:26 pm

Hi all,

I am having trouble removing the Frame from an annotation Rectangle.

Is there a way to achieve this?

Thanks

Pep
Site Admin
Site Admin
Posts: 3278
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Mar 11, 2004 5:48 pm

Hi,

you can do :
tChart1.Tools.Items(0).asAnnotation.Shape.Frame.Visible = False

norad
Newbie
Newbie
Posts: 13
Joined: Fri Nov 15, 2002 12:00 am
Location: Athens, Greece
Contact:

Post by norad » Thu Mar 18, 2004 11:57 am

I have tried to use the above code but i get an error on the asp page.

The following is the code i have used
With Chart

.Tools.Add tcAnnotate
.Tools.Items(2).Active = True
With .Tools.Items(2).asAnnotation
.Position = ppRightTop
.Shape.Gradient.Visible = false
.Shape.ShapeStyle = fosRectangle
.Shape.Font.Name = "Verdana"
.Shape.Font.Color = RGB(170,170,204)
.Text = "TEST"
.Shape.Shadow.Color = vbwhite
.Shape.Frame.Visible = False
End With
End With

and the error i get:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Shape.Frame'

Am i doing something wrong here?
Please help

Pep
Site Admin
Site Admin
Posts: 3278
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Mar 19, 2004 2:45 pm

Hi norad,

>Object doesn't support this property or method: 'Shape.Frame'
Yes, you're correct, it's a bug. I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.

norad
Newbie
Newbie
Posts: 13
Joined: Fri Nov 15, 2002 12:00 am
Location: Athens, Greece
Contact:

Post by norad » Tue Mar 23, 2004 7:59 am

Thanks for your reply, i will be waiting the maintenance release

Norad

Post Reply