Click or drag to resize

DataSourceImporterReadDataTable Method

Read a spreadsheet file straight into a datatable: http://windowsclient.net/blogs/faqs/archive/2006/05/30/how-do-i-load-a-csv-file-into-a-datatable.aspx Connection strings: http://www.connectionstrings.com/ Where sourceString is an Excel file the table name is first checked against any defined names in the workbook and if there is no defined name then the worksheet matching the tableName is used. Finally the first worksheet is used if there is no other match.

Namespace:  Demo3D.Utilities
Assembly:  WpfControls (in WpfControls.dll) Version: 15.0.2.11458
Syntax
C#
public static DataTable ReadDataTable(
	string sourceString,
	string tableName,
	bool useConnectionString,
	bool headers,
	bool isc
)

Parameters

sourceString
Type: SystemString

[Missing <param name="sourceString"/> documentation for "M:Demo3D.Utilities.DataSourceImporter.ReadDataTable(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)"]

tableName
Type: SystemString

[Missing <param name="tableName"/> documentation for "M:Demo3D.Utilities.DataSourceImporter.ReadDataTable(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)"]

useConnectionString
Type: SystemBoolean

[Missing <param name="useConnectionString"/> documentation for "M:Demo3D.Utilities.DataSourceImporter.ReadDataTable(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)"]

headers
Type: SystemBoolean

[Missing <param name="headers"/> documentation for "M:Demo3D.Utilities.DataSourceImporter.ReadDataTable(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)"]

isc
Type: SystemBoolean

[Missing <param name="isc"/> documentation for "M:Demo3D.Utilities.DataSourceImporter.ReadDataTable(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)"]

Return Value

Type: DataTable

[Missing <returns> documentation for "M:Demo3D.Utilities.DataSourceImporter.ReadDataTable(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)"]

See Also