Loading in a Surface thats saved in XML format

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Loading in a Surface thats saved in XML format

Post by Dave » Wed Jan 27, 2010 5:09 pm

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.

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Re: Loading in a Surface thats saved in XML format

Post by Dave » Thu Jan 28, 2010 8:40 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Loading in a Surface thats saved in XML format

Post by Narcís » Thu Jan 28, 2010 2:58 pm

Hi Dave,

Have you tried letting XmlSource creating the series for you as was discussed here?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply