I'm switching from the ActiveX version to the .NET version of teechart,
I have a lot of templates saved in the old binary format (.tee)
using
TChart.Import.Template.Load(filename)
I'm occurring in an exception saying the file is not correct.
Is the .NET template format different?
And it is possible to convert the old .tee files to the new native format ?
Thanks,
Matteo
Importing ActiveX (.tee) files
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Matteo,
I'm sorry but .tee files are not compatible with TeeChart for .NET, which uses .ten files.
I'm sorry but .tee files are not compatible with TeeChart for .NET, which uses .ten files.
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 |
Quina llastima!!!
But in every case I'm trying to use the new native format and having problem too. (using the version 2.0.2511.18118)
I tried several things:
-To export a template from the designer: when I click the button file size on the save dialog, the dialog close, and if save a chart , the resulting file is 17 bytes large.
- If I try to call export function at runtime I have the exception reported below. I see that a similar errror was experienced also by another user,
but maybe I'm missing somethig basic... I will try to post the sample application that get this error.
Thanks,
Matteo Tesser
System.Reflection.TargetInvocationException: Property accessor 'TextContrast' on object 'System.Drawing.Graphics' threw the following exception:'Parameter is not valid.' ---> System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.get_TextContrast()
--- End of inner exception stack trace ---
at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
at Steema.TeeChart.Export.TemplateExport.SerializeProperty(String Title, Object value, PropertyDescriptor i, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeObject(String Prefix, Object value, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeProperty(String Title, Object value, PropertyDescriptor i, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeObject(String Prefix, Object value, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeProperty(String Title, Object value, PropertyDescriptor i, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeObject(String Prefix, Object value, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.Serialize(SerializationInfo info, StreamingContext context)
at Steema.TeeChart.Chart.GetObjectData(SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at Steema.TeeChart.Export.TemplateExport.Save(String FileName)
But in every case I'm trying to use the new native format and having problem too. (using the version 2.0.2511.18118)
I tried several things:
-To export a template from the designer: when I click the button file size on the save dialog, the dialog close, and if save a chart , the resulting file is 17 bytes large.
- If I try to call export function at runtime I have the exception reported below. I see that a similar errror was experienced also by another user,
but maybe I'm missing somethig basic... I will try to post the sample application that get this error.
Thanks,
Matteo Tesser
System.Reflection.TargetInvocationException: Property accessor 'TextContrast' on object 'System.Drawing.Graphics' threw the following exception:'Parameter is not valid.' ---> System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.get_TextContrast()
--- End of inner exception stack trace ---
at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
at Steema.TeeChart.Export.TemplateExport.SerializeProperty(String Title, Object value, PropertyDescriptor i, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeObject(String Prefix, Object value, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeProperty(String Title, Object value, PropertyDescriptor i, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeObject(String Prefix, Object value, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeProperty(String Title, Object value, PropertyDescriptor i, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.SerializeObject(String Prefix, Object value, SerializationInfo info)
at Steema.TeeChart.Export.TemplateExport.Serialize(SerializationInfo info, StreamingContext context)
at Steema.TeeChart.Chart.GetObjectData(SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at Steema.TeeChart.Export.TemplateExport.Save(String FileName)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Matteo,
Yes, this a problem some of our users reported recently:
http://www.teechart.net/support/viewtopic.php?t=5097
It seems to be quite an inconsistent issue. Anyway, we will try to find a solution ASAP.
Yes, it's a pity .Quina llastima!!!
But in every case I'm trying to use the new native format and having problem too. (using the version 2.0.2511.18118)
Yes, this a problem some of our users reported recently:
http://www.teechart.net/support/viewtopic.php?t=5097
It seems to be quite an inconsistent issue. Anyway, we will try to find a solution ASAP.
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 Matteo,
We have just posted a new maintenance release at the client area which fixes this issue.
Yes, this a problem some of our users reported recently:
http://www.teechart.net/support/viewtopic.php?t=5097
We have just posted a new maintenance release at the client area which fixes this issue.
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 |