Jump to content
Software FX Community

Method DataSourceADO failed for _Chart


patricktully

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

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...