LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
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






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Office 2007 can't see chart series values unless chart unprotec Carl Charts and Charting in Excel 0 October 28th 09 03:31 AM
using office 2007 chart in office 2003 Bertie Charts and Charting in Excel 2 July 26th 09 09:46 AM
doubt nibu Excel Worksheet Functions 2 August 15th 08 05:57 PM
I have a doubt! Jaleel Excel Discussion (Misc queries) 4 September 21st 06 01:51 PM
some doubt mango Excel Worksheet Functions 6 December 31st 04 01:42 PM


All times are GMT +1. The time now is 10:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"