TfrxChartView->ClearSeries()

edited 5:00AM in FastReport VCL 5
Hello,
in my application (C++ Embarcadero Tokyo 10.2, FR VCL5 - Embarcadero edition) I have placed pure (empty) TfrxChartView
onto report page in the designer. However data are inserted dynamically.

This sequence of commands works perfectly:

ChartView->ClearSeries();
ChartView->AddSeries(csLine) and fill the data...
Report->ShowReport(0);

I would like to clear the series immediately after Preview (Print)
But following sequence rises an exception (access violation...)

ChartView->AddSeries(csLine) and fill the data...
Report->ShowReport(0);
ChartView->ClearSeries(); <-exception !

What am I doing wrong ?

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.