M
microsoft.public.office.developer.web.components
Hi,
I have the following problem:
A windows-forms based application with embedded OWC11 spreadsheet. I want to
run a database query, and put the result-set values in a worksheet. To do
this, I am first converting the result-set to a NxM System.Array object
(with base 1, not zero). Then, I'm doing something like this, without
success:
' Contains the array object with result set values.
Dim array as System.Array
worksheet.Cells.Range(topLeftCell, bottomRightCell).Value2 = array
I've also tried:
worksheet.Cells.Range(topLeftCell, bottomRightCell).Value = array
'AND
worksheet.Cells.Range(topLeftCell, bottomRightCell).Formula = array
Any ideas on how I can do this? Or do I have to do a cell-by-cell copy of
values from the input array into the spreadsheet?
Thanks in advance,
Chinmay
I have the following problem:
A windows-forms based application with embedded OWC11 spreadsheet. I want to
run a database query, and put the result-set values in a worksheet. To do
this, I am first converting the result-set to a NxM System.Array object
(with base 1, not zero). Then, I'm doing something like this, without
success:
' Contains the array object with result set values.
Dim array as System.Array
worksheet.Cells.Range(topLeftCell, bottomRightCell).Value2 = array
I've also tried:
worksheet.Cells.Range(topLeftCell, bottomRightCell).Value = array
'AND
worksheet.Cells.Range(topLeftCell, bottomRightCell).Formula = array
Any ideas on how I can do this? Or do I have to do a cell-by-cell copy of
values from the input array into the spreadsheet?
Thanks in advance,
Chinmay