Importing ActiveX (.tee) files

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
matteo
Newbie
Newbie
Posts: 4
Joined: Mon Dec 11, 2006 12:00 am

Importing ActiveX (.tee) files

Post by matteo » Thu Dec 14, 2006 2:25 pm

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

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

Post by Narcís » Thu Dec 14, 2006 2:34 pm

Hi Matteo,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

matteo
Newbie
Newbie
Posts: 4
Joined: Mon Dec 11, 2006 12:00 am

Post by matteo » Fri Dec 15, 2006 8:30 am

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)

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

Post by Narcís » Fri Dec 15, 2006 8:37 am

Hi Matteo,
Quina llastima!!!
Yes, it's a pity :wink:.
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
Image Image Image Image Image Image
Instructions - How to post in this forum

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

Post by Narcís » Fri Dec 22, 2006 1:39 pm

Hi Matteo,
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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply