Export to Excel and Dates

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JNorth
Newbie
Newbie
Posts: 7
Joined: Mon Jun 01, 2009 12:00 am

Export to Excel and Dates

Post by JNorth » Wed Sep 02, 2009 6:02 am

When trying to export a chart that contains the following values (X is a date column formatted as "d/mm/yyyy").

X Y
31/08/2009 7.58
1/09/2009 7.75
2/09/2009 4.16


The dates in the excel file are saved as

X Y
40056 7.58
40057 7.75
40058 4.16


When trying to set a format for the values using the chart editor it tries to export all values using the Value Format (d/mm/yyyy) that I selected. Using the Numeric Format dialog that displays and selecting the DateTime radio button. An error occurs when saving to Excel because it is using the Value Format to format the Y column.

Why isn't there a Value Format available for each Axis (or series even).

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

Re: Export to Excel and Dates

Post by Narcís » Wed Sep 02, 2009 8:39 am

Hi JNorth,

The same problem and solution were described here.
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

JNorth
Newbie
Newbie
Posts: 7
Joined: Mon Jun 01, 2009 12:00 am

Re: Export to Excel and Dates

Post by JNorth » Wed Sep 02, 2009 9:05 pm

Is it possible to get this as a feature request then. If I have a date specified in my series, then it should be exported as a string representation of the date, just as it is displayed on the chart.

I've made the changes myself, however we don't like making changes to third party code unless we really have to.

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

Re: Export to Excel and Dates

Post by Narcís » Thu Sep 03, 2009 8:09 am

Hi JNorth,

I'm afraid it's unlikely as those values are internally stored as double values. I think the easiest way to achieve that would be adding DateTime labels to series points and export those labels too.
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