Native Export in XML format?

TeeChart for ActiveX, COM and ASP
Post Reply
hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Native Export in XML format?

Post by hugh » Tue Apr 08, 2008 4:15 am

I need to export native chart properties in XML format - as demonstrated in the Export Dialog - any idea how to do that?

Thanks,

Hugh

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Apr 08, 2008 8:05 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Native Export in XML format?

Post by hugh » Tue Apr 08, 2008 9:20 am

that's what I also found - however - how it is done in the Export Dialog - there I can export in Text and XML???

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

Post by Narcís » Tue Apr 08, 2008 9:27 am

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!
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

hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Post by hugh » Tue Apr 08, 2008 9:51 am

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]

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 Apr 10, 2008 9:06 am

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.
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

hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Native Export in XML format?

Post by hugh » Fri Apr 11, 2008 1:43 am

Narcis,

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

Thanks, Hugh

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

Post by Narcís » Mon Apr 14, 2008 10:37 am

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.
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

hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Post by hugh » Mon Apr 14, 2008 12:47 pm

Thanks,

Gottit,

Hugh

hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Export XML Native

Post by hugh » Mon Apr 14, 2008 10:26 pm

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

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 Apr 17, 2008 11:31 am

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
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