Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am working in VC9(visual studio 2008)for VC++ Project.I am using Microsoft chart control 6.0 (OLEDB) For displaying data in Graph in my application.

I Registered (D:WINDOWS\system32): mschart20.ocx in my system

I want to show Gantt chart(Range bar chart)and Scatter chart types.
But I dint find these chart types in properties page of Mschart.
It will show only these many types of charts.
VtChChartType3dBar = 0,
 VtChChartType2dBar = 1,
 VtChChartType3dLine = 2,
 VtChChartType2dLine = 3,
 VtChChartType3dArea = 4,
 VtChChartType2dArea = 5,
 VtChChartType3dStep = 6,
 VtChChartType2dStep = 7,
 VtChChartType3dCombination = 8,
 VtChChartType2dCombination = 9,
 VtChChartType2dPie = 14,
 VtChChartType2dXY = 16,


and when I try to customise the ChartType in code

long n = 17; //= MSChartIPDServer.GetChartType();
MSChartIPDServer.SetChartType(17);
MSChartIPDServer.put_ChartData(saChartData.Detach());


while debug I will get an Pop up message "Invalid property value".
Please Help me how to use Gantt chart and Scatter chart in mschart for vc++ Application.

Thank you in advance

Regards,
ukylp
Posted
Updated 1-Feb-12 19:56pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900