Page 1 of 1

Native Export in XML format?

Posted: Tue Apr 08, 2008 4:15 am
by 15047998
I need to export native chart properties in XML format - as demonstrated in the Export Dialog - any idea how to do that?

Thanks,

Hugh

Posted: Tue Apr 08, 2008 8:05 am
by yeray
Hi Hugh,

I'm afraid it's not possible to save chart properties into an xml file. If you want to save them, you'll have to save into a tee file.

You can have a look at the detailed explanation in the tutorials:

Tutorials/Chapter 12 - Exporting and Importing Charts

And at the examples from features demo:

All Features/Exporting/Chart Data/XML
All Features/Exporting/Native binary format/Templates

Both tutorial and demos should be available at TeeChart's program group.

Native Export in XML format?

Posted: Tue Apr 08, 2008 9:20 am
by 15047998
that's what I also found - however - how it is done in the Export Dialog - there I can export in Text and XML???

Posted: Tue Apr 08, 2008 9:27 am
by narcis
Hi hugh,

Text and XML only allows exporting chart data. You'll find an example at Tutorial 12 - Exporting and Importing Charts, "Exporting data" section replacing asHTML for asText or asXML.

Examples can also be found here:

http://www.teechart.net/support/viewtop ... ght=astext
http://www.teechart.net/support/viewtop ... ight=asxml
http://www.teechart.net/support/viewtop ... ight=asxml

Hope this helps!

Posted: Tue Apr 08, 2008 9:51 am
by 15047998
Narcis,

I did study all the lessons you are telling me - just to make sure we are on the same page and understand my question, please....

Open the Editing Window -> Export -> Tab: Native
this lets u:

a) select 'Include Series data'
b) select a 'Format': Binary
Text
XML
with the option to view Text and XML - and this data is the config for the chart...

c) the File size

so - it is possible in the editing tool...

thanks,

Hugh[/img]

Posted: Thu Apr 10, 2008 9:06 am
by narcis
Hi Hugh,

Yes, we forgot to include these method (SaveToXMLFile and SaveToXMLStream) at runtime. We have just added them for the next maintenance release. In the meantime, if it's necessary, we can send you the .ocx with this feature.

Native Export in XML format?

Posted: Fri Apr 11, 2008 1:43 am
by 15047998
Narcis,

Great - I would apprecciate if you could send me the ocx.

Thanks, Hugh

Posted: Mon Apr 14, 2008 10:37 am
by narcis
Hi Hugh,

I've just sent you the new .ocx. Please remember that you'll need to unregister current version and register new one as I told on this thread.

Posted: Mon Apr 14, 2008 12:47 pm
by 15047998
Thanks,

Gottit,

Hugh

Export XML Native

Posted: Mon Apr 14, 2008 10:26 pm
by 15047998
Hi Narcis,

I did uninstall the old ocx - and installed the new ocx as described - but annot see any difference in functionality - even the version number remained 8.0.0.3 - it is possibe u just sent me the old version again??

Otherwise please explain how to export native into XML format - thanks

Hugh

Posted: Thu Apr 17, 2008 11:31 am
by narcis
Hi Hugh,

Yes, you are right. I've sent you now the correct ocx. You should use it like this:

Code: Select all

    TChart1.Export.SaveToXMLFile FileName