Area Series - How to load image programatically ?

TeeChart for ActiveX, COM and ASP
Post Reply
Nitin
Newbie
Newbie
Posts: 9
Joined: Thu Nov 02, 2006 12:00 am

Area Series - How to load image programatically ?

Post by Nitin » Fri Apr 13, 2007 3:08 pm

Hello

I am facing problem with area chart. I want to fill area with specified image. I know it is possible by using TeeChart editor, by specifying image in 'Pattern'. But my problem is, how can I do it programatically ? I wrote following code but it doesn't work.

TChart1.Series(0).FillSampleValues 100
TChart1.Series(0).asArea.Brush.LoadImage "C:\AnyFile.bmp"

Please help me on this as it's very urgent for us.

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 Apr 16, 2007 7:14 am

Hi Nitin,

That property should be something like this:

Code: Select all

  TChart1.Series(0).asArea.AreaChartBrush.Image.LoadFromFile(filename);
However, this property has been forgotten and we will include it in v7.0.14, which we expect to be ready during this week. Please be aware at this forum for new release announcements.
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