What is wrong with this line?

C

ChartsToBe

mySeries[1] = mySeriesCollection.Add(myWorksheet.get_Range("D2", "D13"),
Excel.XlRowCol.xlColumns, false, false, false);

Causes this error... System.InvalidCastException was unhandled
OleAut reported a type mismatch.

What am I doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top