//create a new ExcelPackage
using (ExcelPackage excelPackage = new ExcelPackage())
{
//create a datatable
DataTable dataTable = new DataTable();
//add three colums to the datatable
dataTable.Columns.Add("ID", typeof(int));
dataTable.Columns.Add("Type"...