Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# and Excel Charts

Status
Not open for further replies.

jcmercure

Programmer
Oct 22, 2003
20
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top