SaveToStream - Multiple Charts in a file

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

SaveToStream - Multiple Charts in a file

Post by nbp » 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)

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 21, 2008 7:10 am

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.
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