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

TeeChart for ActiveX, COM and ASP
Post Reply
jbell
Newbie
Newbie
Posts: 9
Joined: Thu Apr 09, 2009 12:00 am

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

Post by jbell » Wed Apr 22, 2009 3:55 pm

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

jbell
Newbie
Newbie
Posts: 9
Joined: Thu Apr 09, 2009 12:00 am

Post by jbell » Wed Apr 22, 2009 11:12 pm

Uh, never mind :)

Post Reply