
Index
From: Richard Percival
Subject: Evaluation Version Org Chart
Date: Tue, 27 Oct 2009 13:04:13 -0000
Newsgroup: steema.public.teechart8.dotnet
Hi There, I am currently evaluating teechart v8 for use by my company.
I am trying to generate an org chart, more specifically trying to change the
color and shadow properties for the chart.
I am streaming the chart from an ASP page to the browser. Although I can get
nodes to appear, any attempt to change the appearance through the use of the
format property causes a crash
Have I misunderstood the property/object tree and am doing this wrong?
Apart from the property and method lists for org charts are there any other
tutorials/examples
regards
Richard Percival
'-------------------------------------------------------------------
Set TChart1 = CreateObject("TeeChart.TChart")
TChart1.AddSeries scOrganizational
set allFormat = TChart1.Series(0).asOrganizational.Format
'This line causes a crash
TChart1.Series(0).asOrganizational.Format.Color = vbRed
root = TChart1.Series(0).asOrganizational.add("fred",-1)
i = TChart1.Series(0).asOrganizational.add("bill",root)
set node = TChart1.Series(0).asOrganizational.item(i)
node.text = node.Text & cstr(i)
set nodeFormat = node.format
'This line causes a crash
nodeFormat.shadow.visible = true
i = TChart1.Series(0).asOrganizational.add("joe",root)
Response.BinaryWrite TChart1.Export.Stream(0)