NativeExcel2 for .Net Developer's Reference

IRange.GetDataTableMethod

Returns a newly created data table from the specified range.

[Visual Basic]
FunctionGetDataTable(_
ByValColHeadersAsBoolean,_
ByValFormattedTextAsBoolean_
)AsDataTable
[C#]
DataTableGetDataTable(
boolColHeaders,
boolFormattedText
);
[C++]
DataTable*GetDataTable(
boolColHeaders,
boolFormattedText
);
[JScript]
functionGetDataTable(
boolColHeaders,
boolFormattedText
):DataTable;

Parameters

ColHeaders
Specifies that the first row should be treated as column headers (column names).
FormattedText
True to use formatted text for all values.

Example

See Also

IRange Interface | NativeExcel Namespace | SetDataTable Method