The change could not be updated on Chart

edited 12:20PM 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 12:20PM
    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 12:20PM
    Dear Sir,
    Ok, your reply does work, the question already resolved. thanks.

    sun

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.