Jump to content
Software FX Community
patricktully

Method DataSourceADO failed for _Chart

Recommended Posts

Hello,

I am using ChartFX 6.2 COM version.

I have a chart in which I dynamically assign an ADO recordset to the the chart's DataSourceADO property. However, after doing some data processing, sometimes I have to assign a different recordset to the DataSourceADO property. When I do this, I get the error "Method DataSourceADO failed for _Chart".

Can someone tell me the best way to assign a recordset after I have already assigned a first one? By this I mean that I want the chart to start using the second recordset instead of the first recordset.

Thanks,

Patrick

Share this post


Link to post
Share on other sites

Since I couldn't find the true answer to this problem, I created the following workaround:

I created a second chart and assigned the second ADO recordset equal to the chart's DataSourceADO property. I then had logic in my code that decided which chart should be visible and which one should not. If anyone has a better workaround or the answer to the original question, please feel free to post it.

Thanks,

Patrick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×