Page 1 of 1

TChartShape and TLineSeries foreground/background

Posted: Mon Mar 07, 2005 4:00 pm
by 7515
I have a TChart with a TChartShape and A TLineSeries that correctly display on the screen.

Unfortunately with I copy the TChart to the clipboard and print it out within Word, the TChartShape hides the TLineSeries. Is there a way to make sure the TChartShape is in the background?

Posted: Mon Mar 07, 2005 4:24 pm
by narcis
Hi ijourneaux,

You can use ExchangeSeries method like:

Code: Select all

Chart1.ExchangeSeries(Chart1[0],Chart1[1]);

Posted: Mon Mar 07, 2005 5:29 pm
by 7515
When I try

ViewChart1->ExchangeSeries(ViewChart1[0],ViewChart1[1]);

I get an error


"Can not convert TChart to int"

Posted: Tue Mar 08, 2005 8:24 am
by narcis
Hi ijourneaux,

Then you can try using the series name instead of it's chart index as:

Code: Select all

Chart1->ExchangeSeries(Series1,Series2);