My excel generation time is quite long.So i refer this for time reduction:
How to speed up dumping a DataTable into an Excel worksheet?
But, I'm not able to get what are these two variable:
string [] columnNames, string [] fieldNames in the following method.
private void RenderDataTableOnXlSheet(DataTable dt, Excel.Worksheet xlWk, string [] columnNames, string [] fieldNames)
{}
I have only Datatable and worksheet. How can I generate colomnNames and FieldNames as a string[] from this?