Duplicating a chart

TeeChart for ActiveX, COM and ASP
Post Reply
Neil
Newbie
Newbie
Posts: 10
Joined: Wed Oct 09, 2002 4:00 am
Location: UK
Contact:

Duplicating a chart

Post by Neil » Fri Dec 17, 2004 11:06 am

I need to export my real time chart every few seconds (to show on a web page).

If I use GetExport.GetAsJPEG.SaveToFile() I resize it to 640x480, but this affects the drawing of the real time graph on screen.

To get around this I create a temporary chart, export as native the current chart, and LoadFromFile the saved chart (hope that's clear).

This seems a bit wasteful on resources (saving/loading). Is there a way to 'copy' a chart including data/settings without using a disk file?

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

Post by Pep » Fri Dec 17, 2004 12:02 pm

Hi Neil,

yes, you can use the SaveToStream method, you can find some examples which it has been used under :
C:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Control\Examples\IIS & Asp

Post Reply