Datetime data after export to Excel occur as General format
I have my frx file which contains contract dates
<TableCell Name="Cell3" Border.Lines="All" Text="[Main.contBegDate]" Format="Date" />
<TableCell Name="Cell4" Border.Lines="All" Text="[Main.contEndDate]" Format="Date" />
The source Main is DataTable, where contBegDate and contEndDate is of datetime type.
When I export data from DataTable with FastReport mechanism directly to Excel, on screen it looks fine.
But the type of the cells with dates is "General", not "Date"
<TableCell Name="Cell3" Border.Lines="All" Text="[Main.contBegDate]" Format="Date" />
<TableCell Name="Cell4" Border.Lines="All" Text="[Main.contEndDate]" Format="Date" />
The source Main is DataTable, where contBegDate and contEndDate is of datetime type.
When I export data from DataTable with FastReport mechanism directly to Excel, on screen it looks fine.
But the type of the cells with dates is "General", not "Date"
Comments
I am looking for automatic|programming way.