Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using MSChart ...

Status
Not open for further replies.

troz

Programmer
Jul 26, 2002
5
FR
Hello

First, does anybody know a more useful component than MSChart ? Because it seems to be very unsafe and hard to use.

Otherwise, I've two big problems with this properties :

grpGraphique.Plot.SeriesCollection[Col].Pen.VtColor.Set(Color.Maroon.R,Color.Maroon.G,Color.Maroon.B);

Sometimes, when I set this property VtColor, it handles the exception :

"System.Runtime.InteropServices.COMException (0x800A045F): Object is uninitialized or invalid.
at MSChart20Lib.VtColorClass.Set(Int16 Red, Int16 Green, Int16 Blue)"

It seems very unsafe and unsteady
This is the problem with VtColor

The other is with :
grpGraphique.Plot.SeriesCollection[Col].DataPoints :
this returns a collection of Datapoints, that can be counted, that can be accessed in their totallity by DataPoints[-1], but I can't access any single DataPoint, even if I use the method Datapoint.get__Item(short Index) ...

Does anybody already saw these problems ? It would be so helpful...

Thanks

Troz

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top