Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27377

[RESOLVED] Speed up Excel creation

$
0
0
I have code that creates an Excel spreadsheet from a datatable which works just fine. But the placing of the data on the spreadsheet is slow (about 1 minute for 3,000 records.) It uses a nested loop-thru-the-rows-loop-thru-the-columns, the only way you can do it from a datatable if my understanding is correct. .CopyFromRecordset requires a record set. Is it possible to copy a datatable to a recordset? Or is there another way to speed up the placing of data from VB to Excel?

Viewing all articles
Browse latest Browse all 27377

Trending Articles