gembox.spreadsheet 日期被转换为 int
gembox.spreadsheet date gets converted to int
我正在使用 GemBox.Spreadsheet 版本 39.3.30.1202 将 Excel 97-2003 XLS 文件加载到 C# 中。
一个单元格的值为 13-01-2017(格式:20170113)和数据类型 "Date",自定义格式为 "YYYYMMDD"。
之后
Gembox.Load(new XlsLoadOptions( ) { PreserveOptions = XlsOptions.None });
该单元格的值为 42748,值类型为 'int'。
我可以使用 ExcelCell.ConvertExcelNumberToDateTime(cell.DoubleValue, false)
获得正确的值
= {13/01/2017 00:00:00},但由于这是自动化过程中的错误,我无法从错误转换的日期中分辨出真正的整数。
我怎样才能 GemBox.Spreadsheet 看到日期不是数字?
这已在 GemBox.SpreadSheet 39.3.30.1205 nuget
中(热)修复
我正在使用 GemBox.Spreadsheet 版本 39.3.30.1202 将 Excel 97-2003 XLS 文件加载到 C# 中。
一个单元格的值为 13-01-2017(格式:20170113)和数据类型 "Date",自定义格式为 "YYYYMMDD"。
之后
Gembox.Load(new XlsLoadOptions( ) { PreserveOptions = XlsOptions.None });
该单元格的值为 42748,值类型为 'int'。
我可以使用 ExcelCell.ConvertExcelNumberToDateTime(cell.DoubleValue, false)
获得正确的值
= {13/01/2017 00:00:00},但由于这是自动化过程中的错误,我无法从错误转换的日期中分辨出真正的整数。
我怎样才能 GemBox.Spreadsheet 看到日期不是数字?
这已在 GemBox.SpreadSheet 39.3.30.1205 nuget
中(热)修复