gridband tool

TeeChart for ActiveX, COM and ASP
Post Reply
Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

gridband tool

Post by Thomas Klingler » Fri Sep 24, 2004 1:34 pm

hi

I cannot seem to make the gridband tool work (asp export to png with AXv7). The code I use is:

gridband=Chart.Tools.Add(tcGridBand)
With Chart.Tools.Items(gridband).asGridband
.Axis = Chart.Axis.Left
.Band1 = RGB(33,33,33)
.Band2 = RGB(233,233,233)
End With

The error I get is :
Object doesn't support this property or method: 'Band1'

Could you help?

Thanx
Alex

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

Post by Pep » Mon Sep 27, 2004 9:09 am

Hi,

I think you forgot the Color property :

Code: Select all

With Chart.Tools.Items(gridband).asGridBand
.Axis = Chart.Axis.Left
.Band1.Color = RGB(33, 33, 33)
.Band2.Color = RGB(233, 233, 233)
End With

Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Post by Thomas Klingler » Mon Sep 27, 2004 6:11 pm

Works great!

thanx :)

Alex

P.S. You really have to rewrite your documentation :wink: :wink: It will save you alot of posts in this forum :)

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

Post by Pep » Tue Sep 28, 2004 6:47 am

Hi Alex,
P.S. You really have to rewrite your documentation It will save you alot of posts in this forum
We're improving the Help files every releases, hope this helps to all the customers.

Post Reply