Skip to content

Commit c309d5d

Browse files
authored
Update Working-with-Data.md
1 parent 0fcbc7f commit c309d5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

File-Formats/XlsIO/Working-with-Data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ The following code snippet illustrates on how to import a DataTable into a works
2424

2525
N> XlsIO supports importing of data from data table to worksheet in Windows Forms, WPF, ASP.NET, ASP.NET MVC and ASP.NET Core (2.0 onwards) platforms alone.
2626

27-
N> When the data table column contains numbers and date values formatted as text, they will be imported as string type only. The number formatting applied to the data table column values will not be effective. To address this, the data table column values should be preserved with their respective data type.
28-
2927
{% tabs %}
3028
{% highlight c# tabtitle="C# [Cross-platform]" %}
3129
using (ExcelEngine excelEngine = new ExcelEngine())
@@ -83,6 +81,8 @@ End Using
8381

8482
A complete working example to import data from DataTable to Excel worksheet in C# is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Import%20and%20Export%20Data/DataTable%20to%20Worksheet).
8583

84+
N> XlsIO imports the data from data table into Excel worksheet based on the data table column type. So, it is suggested to create the data tables with required column types such as number, text or date time before importing the data table to Excel worksheet.
85+
8686
### Import Data from DataColumn
8787

8888
The following code snippet illustrates how to import DataColumn into a worksheet using [ImportDataColumn](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ImportDataColumn_System_Data_DataColumn_System_Boolean_System_Int32_System_Int32_) method.

0 commit comments

Comments
 (0)