Page 1 of 1
Importing ActiveX (.tee) files
Posted: Thu Dec 14, 2006 2:25 pm
by 9643307
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
Posted: Thu Dec 14, 2006 2:34 pm
by narcis
Hi Matteo,
I'm sorry but .tee files are not compatible with TeeChart for .NET, which uses .ten files.
Posted: Fri Dec 15, 2006 8:30 am
by 9643307
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)
Posted: Fri Dec 15, 2006 8:37 am
by narcis
Hi Matteo,
Quina llastima!!!
Yes, it's a pity
.
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.
Posted: Fri Dec 22, 2006 1:39 pm
by narcis
Hi Matteo,
We have just posted a new maintenance release at the client area which fixes this issue.