use dataset in TeeChart V7
Posted: Tue Oct 28, 2008 1:45 am
hello.
I got two problems there..
Can anyone tell me the TeeCahrt activeX pro V7 support dataset object in asp.net? or what's wrong with my code?
I added the com item to the toolbox, why can't I drag the Teechart object to the Web form in design mode?
where is my partial code..
==========
da.SelectCommand = New SqlCommand(sqlstr, conn)
da.Fill(ds, "test_table")
TChart1.Width = 500
TChart1.Height = 500
TChart1.Aspect.View3D = False
TChart1.AddSeries(TeeChart.ESeriesClass.scLine)
'TChart1.Series(0).DataSource = ds2rs(ds) ---> convert to recordset , works fine
'TChart1.Series(0).DataSource = ds ---> conflict the unexpected error HRESULT: 0x8000FFFF (E_UNEXPECTED)
TChart1.Series(0).YValues.ValueSource = "field1"
TChart1.Series(0).XValues.ValueSource = "field2"
response.binarywrite(TChart1.Export.asPNG.SaveToStream)
==========
PS. IDE is VS2005
best regards.
I got two problems there..
Can anyone tell me the TeeCahrt activeX pro V7 support dataset object in asp.net? or what's wrong with my code?
I added the com item to the toolbox, why can't I drag the Teechart object to the Web form in design mode?
where is my partial code..
==========
da.SelectCommand = New SqlCommand(sqlstr, conn)
da.Fill(ds, "test_table")
TChart1.Width = 500
TChart1.Height = 500
TChart1.Aspect.View3D = False
TChart1.AddSeries(TeeChart.ESeriesClass.scLine)
'TChart1.Series(0).DataSource = ds2rs(ds) ---> convert to recordset , works fine
'TChart1.Series(0).DataSource = ds ---> conflict the unexpected error HRESULT: 0x8000FFFF (E_UNEXPECTED)
TChart1.Series(0).YValues.ValueSource = "field1"
TChart1.Series(0).XValues.ValueSource = "field2"
response.binarywrite(TChart1.Export.asPNG.SaveToStream)
==========
PS. IDE is VS2005
best regards.