Problems when exporting a numeric column to excel
Hello
I have the following problem when I try to make an export using the option "Excel table (OLE)". I have a column whose display format is set as numeric and the column is imported without using an apostrophe to make the number a string, but excel still does not recognize it as text. What could be causing this?
Also, the clients say that this was not happening before we updated the FastReport version.
I have the following problem when I try to make an export using the option "Excel table (OLE)". I have a column whose display format is set as numeric and the column is imported without using an apostrophe to make the number a string, but excel still does not recognize it as text. What could be causing this?
Also, the clients say that this was not happening before we updated the FastReport version.
Comments
I have the same problem. It depends on the versions of Excel and FastReport.
I have tested the following cases (Delphi 6 and Delphi 2010):
Excel 2002, FastReport v4.9.59: ok
Excel 2002, FastReport v4.9.99: ok
Excel 2002, FastReport v4.10.8: ok
Excel 2007, FastReport v4.9.59: ok
Excel 2007, FastReport v4.9.99: numeric will be exported as text
Excel 2007, FastReport v4.10.8: numeric will be exported as text
The fastest way to reproduce: FastReport 4 Demo -> Basic reports -> Nested groups -> Export excel table (OLE)
Petra
Excel 2007, FastReport v4.10.9: numeric will be exported as text
Petra
Doesn't the report use the SysUtils.DecimalSeparator by default?
Unless the user does some fancy stuff with the report there should never be a mismatch.
Excel 2002, FastReport v4.9.99: ok
Excel 2002, FastReport v4.10.8: ok
Excel 2007, FastReport v4.9.59: ok
Excel 2007, FastReport v4.9.99: numeric will be exported as text
Excel 2007, FastReport v4.10.8: numeric will be exported as text
where I can download the component above fastreport..
I am now using Mike Skolnic's export suite components (scalabium.com) and never looked back. It costs a little money but that is probably less than 2 hours of labour.