TChartShape and TLineSeries foreground/background

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ijourneaux
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am

TChartShape and TLineSeries foreground/background

Post by ijourneaux » Mon Mar 07, 2005 4:00 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 07, 2005 4:24 pm

Hi ijourneaux,

You can use ExchangeSeries method like:

Code: Select all

Chart1.ExchangeSeries(Chart1[0],Chart1[1]);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ijourneaux
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am

Post by ijourneaux » Mon Mar 07, 2005 5:29 pm

When I try

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

I get an error


"Can not convert TChart to int"

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Mar 08, 2005 8:24 am

Hi ijourneaux,

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

Code: Select all

Chart1->ExchangeSeries(Series1,Series2);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply