Import and Export
Import and Export
I seem to be having some problems importing templates as well as XML files. The files are uploaded to you can you review and comment on what I am missing.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi history,
The problem seems related to the fact that each series first value is -Infinity. This is a defect that I've added to the bug list (TF02013018) to be fixed for next releases.
The problem seems related to the fact that each series first value is -Infinity. This is a defect that I've added to the bug list (TF02013018) to be fixed for next releases.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi histry,
Thanks for the file and information. I could reproduce the issue here, debugged it and found the error happens when the template file loads an object of type Honeywell.Desktop.OfficeInterface.TrendRectangleTool. Is that a custom object you created? If so you may be interested in reading this thread about custom objects serialization/deserialization and also read Tutorial19 - Custom Serialization.
Thanks for the file and information. I could reproduce the issue here, debugged it and found the error happens when the template file loads an object of type Honeywell.Desktop.OfficeInterface.TrendRectangleTool. Is that a custom object you created? If so you may be interested in reading this thread about custom objects serialization/deserialization and also read Tutorial19 - Custom Serialization.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi histry,
We are currently investigating TF02013018 and we are wondering how did you create the xml file? In the file, all series begin and end with a double.NegativeInfinity. This means the file can't have been generated from TeeChart, as the following code does not work:
So could you please send us the code you used to generate the chart that generated the XML file?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
We are currently investigating TF02013018 and we are wondering how did you create the xml file? In the file, all series begin and end with a double.NegativeInfinity. This means the file can't have been generated from TeeChart, as the following code does not work:
Code: Select all
private void InitializeChart()
{
tChart1.Series.Add(typeof(Line));
tChart1[0].Add(1, double.NegativeInfinity);
tChart1[0].Add(2, 2);
tChart1[0].Add(3, 3);
tChart1[0].Add(4, double.NegativeInfinity);
}
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
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 |
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello,
When an error is thrown on clicking button2, that is, trying to import the TeeChart generated file. Can you please give us an indication that your case is similar to the one above?
Well, I guess it's really to confirm that the problem can be represented in this code:histry wrote:not sure what you are asking.
Code: Select all
public Form3()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Series.Add(typeof(Line));
tChart1[0].DefaultNullValue = double.NegativeInfinity;
tChart1[0].Add(1, double.NegativeInfinity, Color.Transparent);
tChart1[0].Add(2, 2);
tChart1[0].Add(3, 3);
tChart1[0].Add(4, double.NegativeInfinity, Color.Transparent);
}
private void button1_Click(object sender, EventArgs e)
{
tChart1.Export.Data.XML.Save(@"C:\temp\inf.xml");
}
private void button2_Click(object sender, EventArgs e)
{
tChart1.Clear();
XmlSource source = new XmlSource(tChart1.Chart);
source.Load(@"C:\temp\inf.xml");
}
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello,
Please note that the format of this file is different from your stripchart.xml, hence my reason for asking if that file was generated in a way similar to my code. The important difference is in the <point color attribute which specifies the null value (Color.Transparent in Hex). Simply importing in your stripchart.xml even with this fix in place will still produce an error.
Ok, the code posted in my last message in this thread has now been fixed. The inf.xml generated looks like this:Chris wrote:Can you please give us an indication that your case is similar to the one above?
Code: Select all
<chart>
<series title="line1" type="Line" color="FF4466A3">
<points count="4">
<point color="00FFFFFF" X="1" Y="-Infinity"/>
<point X="2" Y="2"/>
<point X="3" Y="3"/>
<point color="00FFFFFF" X="4" Y="-Infinity"/>
</points>
</series>
</chart>
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/