The change could not be updated on Chart

edited 5:54AM in FastReport .NET
Hi All,
I load a report which containes a MSChartObject in VS 2003, then get the reference of the chart with FINDOBJECT, then get its first series like this:
CODE:
MSChartObject myChart=FReport_Curves.FindObject("myChart") as MSChartObject;
MSChartSeries mySeries = myChart.Series[0];
mySeries.Name="test";
----END

the question is the change could not be updated to chart when I compiled the programe and run it?

also, when I set a filter for the chart series, it doesn't work too.

could someone tell me what mistake I made? thanks.

Best Rgds

Comments

  • edited 5:54AM
    Hello,

    mySeries.Name="test";

    this code has no effect. You should use the following code if you want to change series name:

    mySeries.SeriesSettings.Name="test";

    How do you set the filter? The following code should work:

    mySeries.Filter="[table.column] > 10";
  • edited 5:54AM
    Dear Sir,
    Ok, your reply does work, the question already resolved. thanks.

    sun

Leave a Comment