If I do this then I only get the first value of the float array in every row in the excel column A:
float[] ftmp // my float array
Excel.Range rng = ws.Range[ws.Cells[1, 1], ws.Cells[ftmp.Count(), 1]];
rng.Value = ftmp;
I understand that it has something to do with transposing based on similar questions.
Writing an array to a range. Only getting first value of array
but I can't find the transpose function in neither interop library or the worksheet function library?
rng = ws.Cells[1,1].Resize(ftmp.Length, 1)should work also to reference a table of cells.Excelacceptsdoublevalues in the form of a 2D array ofobject(Variantin VBA). So you need to convertfloat[]todouble[]and then store inobject[,].