Page 1 of 1

Duplicating a chart

Posted: Fri Dec 17, 2004 11:06 am
by 6924861
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?

Posted: Fri Dec 17, 2004 12:02 pm
by Pep
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