我的excel生成时间很长。所以我参考这个来减少时间:
如何加快将 DataTable 转储到 Excel 工作表中的速度?
但是,我无法得到这两个变量是什么:
string [] columnNames, string [] fieldNames in the following method.
private void RenderDataTableOnXlSheet(DataTable dt, Excel.Worksheet xlWk, string [] columnNames, string [] fieldNames)
{}
我只有数据表和工作表。如何从中生成 colomnNames 和 FieldNames 作为 string[] ?