I'm looking for the way to improve Datatable mapping to Excel spreadsheet.

Current code using looping technique to import data from DataTable to Excel:

```
for (int i = 0; i < dt.Columns.Count; i++)
{
       thc = new TableHeaderCell();
       thc.BorderWidth = 1;
       thc.BorderStyle = BorderStyle.Solid;
       //thc.Style.Add("backgroundColor", "#cacab5");
       thc.BorderColor = System.Drawing.Color.White;
       thc.BackColor = System.Drawing.Color.BurlyWood;
       thc.Text = dt.Columns[i].ColumnName;
       thr.Cells.Add(thc);
}

tblReport.Rows.Add(thr);

for (int j = 0; j < dt.Rows.Count; j++)
{
     tr = new TableRow();
     tr.BorderStyle = BorderStyle.Solid;
     if (bt == "IE")
         tr.BorderWidth = 1;
     else
         tr.BorderWidth = 2;
     tr.BorderColor = System.Drawing.Color.White;

     long n;

     for (int i = 0; i < dt.Columns.Count; i++)
     {
         td = new TableCell();
         td.BorderWidth = 1;
         td.BorderStyle = BorderStyle.Solid;
         td.BorderColor = System.Drawing.Color.White;
         td.BackColor = System.Drawing.Color.Bisque;
         td.Text = dt.Rows[j][i].ToString();

         n = 0;
         bool isNumeric = long.TryParse(td.Text, out n);
         if (isNumeric && td.Text.Length > 10)
                 td.Attributes.Add("style", @"mso-number-format:\@");

         tr.Cells.Add(td);
     }
     tblReport.Rows.Add(tr);
}

```

I found another way to do it through EPPlus.

Which way is faster?