We are using LoadFromChart and SaveToStream to use TChart with streams. For loading we use this code:
Code: Select all
LoadChartFromStream(TCustomChart(Form1.MainChart), LogStream.DataSet[DatensatzIdx].Chart_Stream);
Code: Select all
SaveChartToStream( MainChart,
TStream(DatenStream[PresentDevice.AktuellerKanal].DataSet[_DataSetIndex].Chart_Stream),
False, True);
We saved the stream to our logging software and take a look to the hex values. The 3D options are definitely in the stream.
So what must we do to save and load the complete Chartstream?