TeeChart5 to TeeChart.NET migration help needed
Posted: Tue Feb 08, 2005 11:16 pm
Hello all,
I have recently inherited VB6 code that uses TeeChart 5, and I am responsile for moving the TeeChart code to the .NET version. (On top of that I'm new to using TeeChart) I have been able to find nearly all of the corresponding calls in the .NET API, but I have hit a few snags that I have described below. Any help would be appreciated.
Thanks!
Jim
tChart is a TChart instance for the first two snippets
1)
tChart.Series(iSeries).asLine.Pointer.Pen.Width
Produces the compiler error message:
"asLine is not a member of Steema.TeeChart.Styles.Series"
2)
tChart.Axes.Left.GridPen.Color = icolor
tChart.Axes.Left.GridPen.Visible = bVisible
Produces the following compiler error message (for both lines) though the API says that the properties are both gettable and settable:
Reference to a non-shared member requires an object reference.
3) Are TeeChart.ESeriesClass.scFastLine and TeeChart.ESeriesClass.scLine needed anymore? Should I toss the code that uses them, or is there a workaround? I get the compiler error "Name TeeChart is not declared"
4) Some of the previous properties of TChart.Canvas are no longer available in TChart.Graphics3D (such as Canvas.Left, Canvas.Top, Canvas.Height, etc.), and I don't know what to replace them with.
I have recently inherited VB6 code that uses TeeChart 5, and I am responsile for moving the TeeChart code to the .NET version. (On top of that I'm new to using TeeChart) I have been able to find nearly all of the corresponding calls in the .NET API, but I have hit a few snags that I have described below. Any help would be appreciated.
Thanks!
Jim
tChart is a TChart instance for the first two snippets
1)
tChart.Series(iSeries).asLine.Pointer.Pen.Width
Produces the compiler error message:
"asLine is not a member of Steema.TeeChart.Styles.Series"
2)
tChart.Axes.Left.GridPen.Color = icolor
tChart.Axes.Left.GridPen.Visible = bVisible
Produces the following compiler error message (for both lines) though the API says that the properties are both gettable and settable:
Reference to a non-shared member requires an object reference.
3) Are TeeChart.ESeriesClass.scFastLine and TeeChart.ESeriesClass.scLine needed anymore? Should I toss the code that uses them, or is there a workaround? I get the compiler error "Name TeeChart is not declared"
4) Some of the previous properties of TChart.Canvas are no longer available in TChart.Graphics3D (such as Canvas.Left, Canvas.Top, Canvas.Height, etc.), and I don't know what to replace them with.