LoadFromDataTable Method (DataTable, Boolean, TableStyles)

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,
	TableStyles TableStyle
)
Visual Basic (Declaration)
Public Sub LoadFromDataTable ( _
	Table As DataTable, _
	PrintHeaders As Boolean, _
	TableStyle As TableStyles _
)
Visual C++
public:
void LoadFromDataTable(
	DataTable^ Table, 
	bool PrintHeaders, 
	TableStyles TableStyle
)

Parameters

Table
Type: System.Data..::.DataTable
The datatable to load
PrintHeaders
Type: System..::.Boolean
Print the column names on first row
TableStyle
Type: OfficeOpenXml.Table..::.TableStyles
The table style to apply to the data

See Also