Profile Picture

Bug when loading XML-chart settings in 2014.1,

Posted By Alexander Haberl 10 Years Ago
Author
Message
Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Alexander,
You can save the settings at runtime using the following code:
nChartControl1.Serializer.SaveControlStateToFile("c:\\chartstate.xml", Nevron.Serialization.PersistencyFormat.CustomXML, null);


Best Regards,
Nevron Support Team



Alexander Haberl
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 15, Visits: 48
Can I somehow save the settings from the designer in custom XML? Othewise I have to do save it during runtime, right?


Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Alexander,

Can you send us the state in custom XML format?


Best Regards,
Nevron Support Team



Alexander Haberl
Problem Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 15, Visits: 48
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


Attachments
Test.zip (358 views, 50.00 KB)


Similar Topics


Reading This Topic