Nevron Forum

Bug when loading XML-chart settings in 2014.1,

https://www.nevron.com/Forum/Topic8639.aspx

By Alexander Haberl - Friday, July 4, 2014

I found a bug in 2014.1 (VS 2010), here's how to reproduce it:

1) Unzip attached binary settings file and load it to a chart control in the VS designer, that works perfectly
2) Save the chart to an XML-file
3) Clear the chart
4) Load settings from the XML-file saved in step 2: The MaxTickCount settings for the ordinal scale configurator are reset to the default (int max value):
https://www.nevron.com/forum/uploads/images/b24f71e8-1be2-4dbe-909a-73a1.jpg
By Nevron Support - Monday, July 7, 2014

Hi Alexander,

Can you send us the state in custom XML format?
By Alexander Haberl - Monday, July 7, 2014

Can I somehow save the settings from the designer in custom XML? Othewise I have to do save it during runtime, right?
By Nevron Support - Tuesday, July 8, 2014

Hi Alexander,
You can save the settings at runtime using the following code:
nChartControl1.Serializer.SaveControlStateToFile("c:\\chartstate.xml", Nevron.Serialization.PersistencyFormat.CustomXML, null);