I'm having problems exporting a chart, because the chart has only a serie but with 122,652 values. I get this error:
Code: Select all
Property accessor 'DataSource' on object 'Steema.TeeChart.Styles.Line' threw the following exception:'Exception of type 'System.OutOfMemoryException' was thrown.'
Code: Select all
chart.Export.Template.IncludeData = false;
chart.Export.Template.Save(path);
I tried deleting the data of the serie before save it, but then chart deletes the data to the user and to get it from the database spends too time to get it again transparently.
Do you know any way to solve it?
Thanks