I'm unable to serialize the chart template. I get the below error.
Stream stream = new MemoryStream();
...Chart.Export.Template.Serialize(stream);
"Type 'Steema.TeeChart.WPF.Drawing.Graphics3DWPF' in Assembly 'TeeChart.WPF, Version=4.2019.5.15, Culture=neutral, ... is not marked as serializable."
Serialize Chart
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Serialize Chart
Hello -
The following code running with TeeChart.WPF.dll v.4.2019.5.15 works as expected here:
Could you please post a code snippet with which we can reproduce your issue here?
The following code running with TeeChart.WPF.dll v.4.2019.5.15 works as expected here:
Code: Select all
private void TChart1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
var ms = new MemoryStream();
tChart1.Export.Template.Save(ms);
ms.Position = 0;
tChart2.Import.Template.Load(ms);
}
Best Regards,
Christopher Ireland / 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 |