![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Exported data to xls doesn't open in Excel 2013 | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Export | Assignee: | marc meumann <marc> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | benoit.blanc, boris.seve, gk, gkobler, hans.boot, j.bu, marc, narcis |
| Priority: | High | ||
| Version: | 150120 | ||
| Target Milestone: | v2017.20 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=15683 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: |
warning
error Export in ods Export in text format Broken file, exported using v2016.19 |
||
|
Description
yeray alonso
2015-07-22 12:06:34 EDT
Created attachment 479 [details]
warning
Created attachment 480 [details]
error
Other export options work fine in Excel 2013; ie .ods gives the same recover alert, but it opens successfully after it. The user in the URL field adds this also occurs with OpenDocument. When exported to ods I get the same error message and *some* data is recovered but the file is still incomplete. I've attached an example in ods and straight text file. Created attachment 481 [details]
Export in ods
Some data can be recovered (one serie)
Created attachment 482 [details]
Export in text format
With both series. The only thing suspicious I see that could explain the problem is the serie name containing multiple spaces
Same issue with Excel 2016. Did you manage to pinpoint what was the problem? Is there something new in this case? I tried TeeChartVCLFMX-2016.17 with the latest excel version and it still tries to repair the file without success. I just check the issue with the new version 2016.18.160504 The export to excel still not working!! A fix is currently being tested to be made available shortly. Hello, This is still broken in 2016.19, I've attached a sample file exported in the latest version. Created attachment 676 [details]
Broken file, exported using v2016.19
Hello Boris, Yes, you're right, the fix isn't correctly applied to v2016.19. Apologies for the misinformation. Please confirm your contact details to sales at steema. com and we'll send a test version to you. fixed for next update, March 2017. Appears to be still broken in 2018.24. We are reviewing the export to .xls and will reply here as soon as possible. I've just applied a patch that seems to work for me here.
For those owning the sources, the change is at the beginning of the TSeriesDataXLS.SaveToStream method in TeeStore.pas. Here the new part:
//////////////////////
Const BeginExcel : Array[0..1] of Word=(0,$09);
EndExcel : Array[0..1] of Word=($A,0);
var tt : Integer;
begin
Prepare;
WriteBuf($09, 4);
AStream.Write(BeginExcel, SizeOf(BeginExcel));
if IncludeHeader then //first unaltered line
//////////////////////
|