.TEN file content in an XML file

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jan Madsen
Newbie
Newbie
Posts: 21
Joined: Wed Jun 22, 2005 4:00 am

.TEN file content in an XML file

Post by Jan Madsen » Wed Apr 19, 2006 1:58 pm

I want to extract the content from a TEN file and insert it into an XML file on a single node e.g as binary data.

Is there an easy way to do this?

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

Post by Narcís » Wed Apr 19, 2006 2:18 pm

Hi Michael,

Yes, you can do something like this:

Code: Select all

    private void Form1_Load(object sender, EventArgs e)
    {
      line1.FillSampleValues();
      tChart1.Export.Template.Save("test.ten");
    }

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Clear();

      tChart1.Import.Template.Load("test.ten");

      Steema.TeeChart.Export.DataExport dataExport = new Steema.TeeChart.Export.DataExport(tChart1.Chart); 
      dataExport.XML.IncludeHeader = true; 
      dataExport.XML.IncludeIndex = true; 
      dataExport.XML.IncludeLabels = true; 
      dataExport.XML.Series = line1; 
      dataExport.XML.Save("test.xml");
    }
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