LoadFromDataTable Method (DataTable, Boolean)

Office Open XML

Load the data from the datatable starting from the top left cell of the range

Namespace:  OfficeOpenXml
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public void LoadFromDataTable(
	DataTable Table,
	bool PrintHeaders
)
Visual Basic (Declaration)
Public Sub LoadFromDataTable ( _
	Table As DataTable, _
	PrintHeaders As Boolean _
)
Visual C++
public:
void LoadFromDataTable(
	DataTable^ Table, 
	bool PrintHeaders
)

Parameters

Table
Type: System.Data..::.DataTable
The datatable to load
PrintHeaders
Type: System..::.Boolean
Print the column names on first row

See Also