【发布时间】:2013-05-29 09:09:33
【问题描述】:
我的excel生成时间很长。所以我参考这个来减少时间:
How to speed up dumping a DataTable into an Excel worksheet?
但是,我无法得到这两个变量是什么:
string [] columnNames, string [] fieldNames in the following method.
private void RenderDataTableOnXlSheet(DataTable dt, Excel.Worksheet xlWk, string [] columnNames, string [] fieldNames)
{}
我只有数据表和工作表。如何从中生成 colomnNames 和 FieldNames 作为 string[]?
【问题讨论】:
标签: performance c#-4.0 datatable excel-2007