COM Exception when setting .Series(x).asShape.XO

TeeChart for ActiveX, COM and ASP
Post Reply
Midnightprowler
Newbie
Newbie
Posts: 4
Joined: Fri Aug 01, 2003 4:00 am
Contact:

COM Exception when setting .Series(x).asShape.XO

Post by Midnightprowler » Thu Feb 12, 2004 7:45 am

We are trying TeeChart6 in a .NET application, and get this COM exception, also when trying to set the pen color - any help??

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Feb 12, 2004 10:56 am

Hi,

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));
		}
Could you test if it works for you ?

Post Reply