about TeeChart.EToolClass.tcDataTable

TeeChart for ActiveX, COM and ASP
Post Reply
w6p2
Newbie
Newbie
Posts: 14
Joined: Thu Dec 29, 2005 12:00 am
Contact:

about TeeChart.EToolClass.tcDataTable

Post by w6p2 » Mon Oct 22, 2007 8:17 am

how can i set the legend of the TeeChart.EToolClass.tcDataTable?
i can't find any method to set this property.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Oct 22, 2007 2:01 pm

Hi w6p2,

You can do something like this:

Code: Select all

    TChart1.Tools.Items(0).asDataTable.Legend.Show
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

w6p2
Newbie
Newbie
Posts: 14
Joined: Thu Dec 29, 2005 12:00 am
Contact:

Post by w6p2 » Tue Oct 23, 2007 7:58 am

can't find 'Show' method

my code is
trend.Tools.Add(TeeChart.EToolClass.tcDataTable)
trend.Tools.Items(0).asDataTable.Legend.Show()

the asDataTable is TeeChart.IDataTableTool, not EToolClass.tcDataTable.
maybe i haven't expain my question clearly, sorry.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Oct 31, 2007 12:04 pm

Hi w6p2,

Ok, in that case you need to do this:

Code: Select all

			axTChart1.Tools.Add(TeeChart.EToolClass.tcDataTable);
			axTChart1.Tools.get_Items(0).asDataTable.Legend.Show();
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply