【发布时间】:2010-06-22 18:38:03
【问题描述】:
我正在编写一个函数来使用 VB .NET 中的 Office 互操作将数据导出到 Excel。我目前正在使用 Excel 工作表的 Cells() 方法直接编写单元格:
worksheet.Cells(rowIndex, colIndex) = data(rowIndex)(colIndex)
处理大量数据需要很长时间。有没有更快的方法一次将大量数据写入 Excel?使用范围做某事会更快吗?
【问题讨论】:
-
这个几乎重复的答案有很多:stackoverflow.com/questions/3840270/…。
标签: vb.net performance excel com office-interop