View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Vinodh Kumar P Vinodh Kumar P is offline
external usenet poster
 
Posts: 1
Default Office Chart doubt

Hi,
I try to create a chart using Office Chart Component 9.
I set the type of the WCChart object as chChartTypeScatterLine,
WCSeries object1 as
chChartTypeScatterSmoothLineMarkers.
WCSeries object2 as
chChartTypeScatterSmoothLine.

But the type applied to series 2 is always set to series object 1.

void CImageCalibChartCtrl::ChangeType()
{
CWCCharts aCharts = myChartCollection.GetCharts();
CWCChart aChart = aCharts.GetItem(COleVariant((short)0));

aChart.Select();
aChart.GetSeriesCollection().GetItem(COleVariant(( short)0)).Select();
aChart.GetSeriesCollection().GetItem(COleVariant(( short)0)).SetType(22);
aChart.GetSeriesCollection().GetItem(COleVariant(( short)1)).Select();
aChart.GetSeriesCollection().GetItem(COleVariant(( short)1)).SetType(23);
}

I do not get any effect of calling Select() method.


Thanks and Regards,
Vinodh Kumar P