Page 1 of 1

Loading in a Surface thats saved in XML format

Posted: Wed Jan 27, 2010 5:09 pm
by 13050364
Hi Support

Im developing an application in C#.NET.

From my application Ive saved a surface using the Teechart editor in XML format.
However I dont know how to load it again and display it in the TeeChart control within my application.

Ive added an XMLsource control to the form. My code is;


xmlSource1.Chart = tChart1.Chart;
xmlSource1.Load(fileName); /* fileName is the XML file

I think the data has loaded OK but I cant see my surface. Im guessing I have to build it up programmatically?
Can you post a code snippet that shows how this is done?

Thanks.

Re: Loading in a Surface thats saved in XML format

Posted: Thu Jan 28, 2010 8:40 am
by 13050364
Sorry this question was a lazy of me. Ive built up a class and loaded the X,Y,Z points from the xml datasource. From there Ive created a surface OK.

Re: Loading in a Surface thats saved in XML format

Posted: Thu Jan 28, 2010 2:58 pm
by narcis
Hi Dave,

Have you tried letting XmlSource creating the series for you as was discussed here?