Hi Fergus!
I need to export the contents of a table to an Excel Spreadsheet. This table
has about 3000 rows.
I already have a very fast one-step process for transfering all of an array
content to excel (therefore the array has 2 dimensions - one for rows and
another for columns, so what I believe I need is a multi-dimensional array
of somethings - like strings).
The alternative I have in hands is to either loop through the items (or
maybe rows) of the datatable exporting them one-by-one, or looping through
the contents of the datatable and assigning the values to the array.
Whichever case makes the process a bit too slow and inefficient.
For example, the .lines property of a multi-lined string automatically
creates a 1 dimension array with all the lines of the string.
I guess what I'm looking for a similar process applied to the datatable case
(with lines and columns)
Thanks again
What I have in mind is transfering the actual datatable contents to an excel
spreadsheet.
"Fergus Cooney" <fi****@post.com> escreveu na mensagem
news:OM**************@TK2MSFTNGP10.phx.gbl...
Hi Rui,
What would you like your array to contain? Are you after a
multi-dimensional array of Objects? Or a single-dimensional array of Somethings?
This is what the DataTable would be asking if it could. Given that it
can't anticipate or ask, it offers a collection of Rows.
What did you have in mind?
Regards,
Fergus