COM Exception when setting .Series(x).asShape.XO
-
- Newbie
- Posts: 4
- Joined: Fri Aug 01, 2003 4:00 am
- Contact:
COM Exception when setting .Series(x).asShape.XO
We are trying TeeChart6 in a .NET application, and get this COM exception, also when trying to set the pen color - any help??
Hi,
it works fine here using the latest TeeChart Pro v6.04 and the follwoing code :
Could you test if it works for you ?
it works fine here using the latest TeeChart Pro v6.04 and the follwoing code :
Code: Select all
private void Form1_Load(object sender, System.EventArgs e)
{
axTChart1.AddSeries(TeeChart.ESeriesClass.scShape);
axTChart1.Series(0).asShape.X0 = 10;
axTChart1.Series(0).asShape.X1 = 20;
axTChart1.Series(0).asShape.Y0 = 2;
axTChart1.Series(0).asShape.Y1 = 5;
axTChart1.Series(0).asShape.Pen.Color = Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Red));
}
Pep Jorge
http://support.steema.com
http://support.steema.com