Page 1 of 1

loading settings from stream

Posted: Tue Jan 24, 2012 8:13 am
by 16559245
currently we store VCL charts to stream in a database.

Is it possible to save for the firemonkey chart to read the vcl settings or is it a common file format I can use?


Jørgen

Re: loading settings from stream

Posted: Tue Jan 24, 2012 3:23 pm
by yeray
Hi Jørgen,

The VCL and FMX versions share the most part of the source code so the majority of properties saves in the tee files are exactly the same. So I don't think a tee file generated in VCL/FMX will present problems when trying to be imported in the other framework (FMX/VCL).
I've actually just tried it and found no problems loading in FMX a simple tee file with a chart with a Bar series and some data generated in VCL.

Re: loading settings from stream

Posted: Wed Feb 01, 2012 1:04 pm
by 16559245
Seems to work but I got error some error:


Property Height does not exist
TChart.Title.Font.Height does not exist
TChart.BottomAxis.LabelsFont.Height does not exist


Jørgen

Re: loading settings from stream

Posted: Fri Feb 03, 2012 3:38 pm
by yeray
Hi Jørgen,

Maybe I was too optimist...
The majority of the code is shared between FMX and VCL, but we had to introduce many IFDEFS to make the VCL code work on FMX because of the differences between the frameworks. Then, I'm afraid any property that exists in VCL but in FMX, saved in a tee file will give this problem when trying to be loaded in FMX.
So I'm afraid this properties should be removed from the tee file.

Re: loading settings from stream

Posted: Thu Feb 09, 2012 11:46 am
by 16559245
Is this something you will fix?

I would have been nice to have a file format that works on both platforms.

Jørgen

Re: loading settings from stream

Posted: Fri Feb 10, 2012 4:02 pm
by yeray
Hi Jørgen,

I'd say it's more a new feature request than a bug, but anyway I've added it to the wish list to be implemented in future releases (TV52016031).
Thanks for reporting it.

Re: loading settings from stream

Posted: Fri Mar 28, 2014 10:56 am
by yeray
Hi again,

I've moved the TV52016031 internal ticket to the public tracker here:
http://bugs.teechart.net/show_bug.cgi?id=680
Feel free to add your mail account to the CC list so you can be automatically notified when an update arrives.