I use this all the time
COleVariant tStream = pTChart->GetExport().GetAsNative().SaveToStream(TRUE);
But is there something similar for a series only? For example
COleVariant tStream = pTChart->Series(0).GetExport().SaveToStream(TRUE);
Series version of SaveToStream?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Series version of SaveToStream?
Hi TonyVSUK,
I'm afraid not. You should do it manually looping through series ValueLists and add what you need to a memory stream.
I'm afraid not. You should do it manually looping through series ValueLists and add what you need to a memory stream.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Series version of SaveToStream?
What I really want to do is save the series formats as well as just the values. As there are so many series available in TChart, it's a real pain to try and figure out all the attributes that need saving for each series type.
Another question, is it possible to copy a series from one TChart to another? If yes, I can just store the whole chart as a stream with just the one series in it.
Another question, is it possible to copy a series from one TChart to another? If yes, I can just store the whole chart as a stream with just the one series in it.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Series version of SaveToStream?
Hi Tony,
Yes, you can use CloneSeries method, for example.Another question, is it possible to copy a series from one TChart to another?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Series version of SaveToStream?
But this clones it to the same chart (I've been experimenting with it).
I have two charts, one with the series that I need on the other chart. Can that be done?
I have two charts, one with the series that I need on the other chart. Can that be done?
Re: Series version of SaveToStream?
Or is there an exhaustive list of all the settings that are stored for each series so I could store them?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Series version of SaveToStream?
Hi Tony,
Yes, sorry. I'm afraid such an option doesn't exist with TeeChart ActiveX. With the VCL version you can use Assign or CloneChartSeries methods. I have added your request to the wish-list (TA05015738) to be considered for inclusion in future versions. In the meantime, the only solution, is exporting the entire chart and remove what you don't need.
Yes, sorry. I'm afraid such an option doesn't exist with TeeChart ActiveX. With the VCL version you can use Assign or CloneChartSeries methods. I have added your request to the wish-list (TA05015738) to be considered for inclusion in future versions. In the meantime, the only solution, is exporting the entire chart and remove what you don't need.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Series version of SaveToStream?
I would find the most useful to be a SaveToStream/LoadFromStream and attach/detach to/from chart functions.
It's really difficult to figure out all the different settings for each series to actually store (there are hundreds of them). Load/Save would be an immense help. Or attach/detach from chart as that way I could create an invisible chart, attach the series and store that.
Is it possible to do this using the .NET component?
It's really difficult to figure out all the different settings for each series to actually store (there are hundreds of them). Load/Save would be an immense help. Or attach/detach from chart as that way I could create an invisible chart, attach the series and store that.
Is it possible to do this using the .NET component?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Series version of SaveToStream?
Hi Tony,
Ok, I have updated the item at the wish-list.I would find the most useful to be a SaveToStream/LoadFromStream and attach/detach to/from chart functions.
Yes, TeeChart for .NET has the Series.Clone, Series.Assign, Series.AssignFormat and Series.AssignValues methods.Is it possible to do this using the .NET component?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |