Page 1 of 1

TChart::Series(n).GetAsSeries() throws OLE exception

Posted: Wed Apr 22, 2009 3:55 pm
by 15052934
I'm using V8.0.0.5 in MSVC 2008. I have a line chart, and want to set the symbol type for a series. I do something like the following:

pChart->AddSeries(scLine);
CShapeSeries ss = pChart->Series(0).GetAsShape();
ss.SetStyle(0); // rectangle

The call to GetAsShape() throws an OLE exception. Is there a different method to set the symbol/style I should be using?

Thanks,

Jeff Bell

Posted: Wed Apr 22, 2009 11:12 pm
by 15052934
Uh, never mind :)