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?
.TEN file content in an XML file
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Michael,
Yes, you can do something like this:
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 |
Instructions - How to post in this forum |