I am working on a C# development project where I need to update existing Charts in an Excel spreadsheet.
After some work I figured out how to get to the charts, but I am having trouble updating the SeriesCollection associate with the chart.
Based on the data that has been programmatically inserted into the spreadsheet, number of charted series my increase or decrease.
How does one go about removing a series from the SeriesCollection?
I am trying to use the Add method of the SeriesCollection to add/replace the existing series but I am having no luck. I am getting a Type mismatch error reported from OleAut.
Any ideas on the data types needed by the Add method and how they should be populated?
Thanks in advance for the help
- John Mercure
After some work I figured out how to get to the charts, but I am having trouble updating the SeriesCollection associate with the chart.
Based on the data that has been programmatically inserted into the spreadsheet, number of charted series my increase or decrease.
How does one go about removing a series from the SeriesCollection?
I am trying to use the Add method of the SeriesCollection to add/replace the existing series but I am having no luck. I am getting a Type mismatch error reported from OleAut.
Any ideas on the data types needed by the Add method and how they should be populated?
Thanks in advance for the help
- John Mercure