SaveToStream - Multiple Charts in a file
Posted: Tue Apr 15, 2008 3:24 pm
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)
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)