So I have this application that accesses an MS-SQL 2K server via ADO. The application is written in VB.
The application uses a ListView control to display ADO recordset content. Now I added a button that exports the content of the ListView to Excel.
The method for the export from the VB app to Excel is via Arrays. It works fine.
My question is, isn't there a faster way? Right now, the export takes each column in the ListView and creates an Array. The Array is then looped thru to place in an Excel Spreadsheet (that is neither visible during the export, nor saved after it is made visible to the user).
Like I said, it works good until you hit a recordset with many records and many columns being returned.
Any suggestions?
Thanks,
The application uses a ListView control to display ADO recordset content. Now I added a button that exports the content of the ListView to Excel.
The method for the export from the VB app to Excel is via Arrays. It works fine.
My question is, isn't there a faster way? Right now, the export takes each column in the ListView and creates an Array. The Array is then looped thru to place in an Excel Spreadsheet (that is neither visible during the export, nor saved after it is made visible to the user).
Like I said, it works good until you hit a recordset with many records and many columns being returned.
Any suggestions?
Thanks,