Page 1 of 1

SaveToStream - Multiple Charts in a file

Posted: Tue Apr 15, 2008 3:24 pm
by 9532498
I need to save several charts (not including series data) and some application defined variables (such as number of charts) to a file. Can I intermingle application defined data and charts saved with SaveToStream in the same file. I'm using Visual C++, MFC.

A general overview is as follows;

Saving

CreateMemoryStream
Save ApplicationData to MemoryStream e.g number of charts
for each Chart
Save Each Chart (using SaveToStream)

Save MemoryStream to File


Loading

Load Application data e.g. Number of charts
For each chart
Load Each Chart (using LoadAsStream)

Posted: Mon Apr 21, 2008 7:10 am
by narcis
Hi nbp,

What you request can not be done directly using TeeChart. However, you could implement your own "SaveToStream" method that saves all the charts then load the stream generated and generate several streams from it to load on each chart.