if my sqlcommand is:
sql=select datadate,sum(stock) from test_view group by datadate order by datadate
then, how should i get the YValuesource
i had tried some code ,below as
mychart1.Series(0).YValues.ValueSource="stock"
or
mychart1.Series(0).YValues.ValueSource="sum(stock)"
but it doesn't work
sum operation
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi w6p2,
You should create a dataset from that query and have a look at the table within that dataset to see what name is given the columns. It can be of help having a look at Tutorial8 - ADO.NET Database Access. You'll find the tutorials at TeeChart's program group.
You should create a dataset from that query and have a look at the table within that dataset to see what name is given the columns. It can be of help having a look at Tutorial8 - ADO.NET Database Access. You'll find the tutorials at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi w6p2,
Ok, then that's the right tutorial. You originally posted the message at the TeeChart for .NET forum and I assumed you were using TeeChart for .NET. I moved your message to the TeeChart Pro ActiveX forum.why is my tutorial 8 is "Tutorial 8 - ADO Database access" not ADO.net?
my software version is TeeChart Pro v7 ActiveX Control
Which error message did you get?but it displayed an error message
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |