WorksheetExtensions.CreateDataTableExporter(Worksheet, CellRange, DataTable, Boolean) Method
Creates an instance of the data table exporter.
You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this method in production code.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Docs.v24.2.dll
NuGet Package: DevExpress.Document.Processor
#Declaration
public static DataTableExporter CreateDataTableExporter(
this Worksheet sheet,
CellRange range,
DataTable dataTable,
bool rangeHasHeaders
)
#Parameters
Name | Type | Description |
---|---|---|
sheet | Worksheet | A Worksheet interface for the worksheet which contains data for export. |
range | Cell |
A Cell |
data |
Data |
A Data |
range |
Boolean | true, to skip the first row in the specified range; otherwise, false. |
#Returns
Type | Description |
---|---|
Data |
A Data |
#Remarks
Use the CreateDataTableExporter method to create a DataTableExporter which is the key object of the data export.
Note
When calling the Create
Therefore, if you need to add an additional column to the data table (e.
Use the WorksheetExtensions.CreateDataTable method to create a data table that corresponds to the specified worksheet cell range.