Search found 2 matches

by davidh
Fri Oct 06, 2006 6:11 pm
Forum: .NET
Topic: Exception when Saving/Loading chart with Cursor Tool
Replies: 1
Views: 2325

Exception when Saving/Loading chart with Cursor Tool

The following throws an exception, when the chart has a Cursor Tool: MemoryStream template = new MemoryStream(); TChart printChart = new TChart(); Chart.Export.Template.Save(template); template.Position = 0; printChart.Import.Template.Load(template); To work around it, I must remove the tool prior t...
by davidh
Thu Oct 05, 2006 4:36 am
Forum: .NET
Topic: Adding custom label doesn't initialize properly
Replies: 1
Views: 2390

Adding custom label doesn't initialize properly

When you do the following,

AxisLabelItem myLabel = new AxisLabelItem();
myLabel.Color = (blah, blah, blah ....)
...
Chart.Axes.Bottom.Labels.Items.Add(myLabel);

you get an exception on the paint event.
The internal iAxisLabelsItems is not being set during this type of Add.