Is Spire.XLS C# support HDR - option when Excel file has no header file ? I have Excel file without header file. This is resolved in OLEDB driver in connection string HDR="No" Option.
Is Spire.XLS C# support HDR - option when Excel file has no header file?
605 views Asked by user18783679 At
1
You can use the ExportDataTable(CellRange range, bool exportColumnNames) method of Spire.Xls.Worksheet class to read worksheet data into a data table and determine whether to export the first row in the worksheet range as header row in the data table.
Example: