Setting the Back Image for TChart

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Setting the Back Image for TChart

Post by nbp » Tue Oct 28, 2008 10:25 pm

I'm using TChart ActiveX v7. I need to set the BackImage for the chart after the user has selected the image file from a file selector dialog. Is there an example of this? What property of the "Panel" do I set?

m_pChart->GetPanel().Set?????

Thanks.

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

Post by Narcís » Thu Oct 30, 2008 9:52 am

Hi nbp,

You should use m_Chart1.GetPanel().BackImageLoad() method.
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

nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Post by nbp » Thu Oct 30, 2008 7:42 pm

Thanks. Now I want to retrieve the filename to serialize it - what is the 'Get' method I use to retieve the filename for the image, in order to save it?

Thanks.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Nov 03, 2008 11:21 am

Hello,

there's not a method to get the FileName, but it's not required as once you runt the BackImageLoad, the image is part of the TChart component, so the image file i snot required. This means that if you export the Chart to .tee the image is included automatically ( but not as a file ).

Post Reply