I'm fetching a query result into aspose cells when the intent to export an excel sheet with the query result.
However when I use the Cells.ImportDataTable all datetime fields are parsed as decimal and do not show up as a date in the resulting excel sheet when exporting.
Isn't this a bug or am I doing somethin wrong?
This is my C# code:
DataTable dataTable = Utils.Database.FetchDataTable(connectionString, "SELECT * FROM NEW_ORDERS");<span style="color: rgb(43, 145, 175);">Workbook</span> workbook = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Workbook</span>(<span style="color: rgb(43, 145, 175);">FileFormatType</span>.Xlsx); <span style="color: rgb(43, 145, 175);">Worksheet</span> sheet = workbook.Worksheets[0]; sheet.Cells.ImportDataTable(dataTable, <span style="color: blue;">true</span>, <span style="color: rgb(163, 21, 21);">"A1"</span>);</pre><pre style="background: white; color: black; font-family: Consolas;"> workbook.Save(<span style="color: blue;">this</span>.Response, <span style="color: rgb(163, 21, 21);">"Report.xlsx"</span>, <span style="color: rgb(43, 145, 175);">ContentDisposition</span>.Attachment, <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">OoxmlSaveOptions</span>(<span style="color: rgb(43, 145, 175);">SaveFormat</span>.Xlsx));