将 Excel 数据导出到 DataTable,无需任何格式

示例代码

下面的示例解释了使用ExportTableOptions.FormatStrategy属性来导出带或不带任何格式的 Excel 数据。

控制台输出

以下是上述示例代码的控制台调试输出

Cell String Value: 0.01

Cell String Value without Format: 0.012345

Export Data Table with Format Strategy as Cell Style: 0.01

Export Data Table with Format Strategy as None: 0.012345