There are two ways I know-
_xlWorksheet.Range[_xlWorksheet.Cells[1, 1], _xlWorksheet.Cells[10, 10]].Value2 = myarray.ToArray();
OR
_xlWorksheet.Range["A1", "J10"].Value2 = myarray.ToArray();
OR
Is there any other faster way?
As per my understanding, when I use
_xlWorksheet.Range[_xlWorksheet.Cells[1, 1], _xlWorksheet.Cells[10, 10]]
there will be three calls to interop. But, in case of
_xlWorksheet.Range["A1", "J10"]
there will be only one call.
I am not sure which one works faster.