Page 1 of 1

Setting the Back Image for TChart

Posted: Tue Oct 28, 2008 10:25 pm
by 9532498
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.

Posted: Thu Oct 30, 2008 9:52 am
by narcis
Hi nbp,

You should use m_Chart1.GetPanel().BackImageLoad() method.

Posted: Thu Oct 30, 2008 7:42 pm
by 9532498
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.

Posted: Mon Nov 03, 2008 11:21 am
by Pep
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 ).