I have a windows form that asks user for some inputs. Creates a 2 d array. Then opens a new excel workbook and writes the array to cells in that workbook. Everything seem to be working as I would expect, except for the values being placed in the cells is "System.Int64[][]" instead of the values from the array.
Below is the code starting where i create my 2d array (a function call). Any help is appreciated. Thanks
'Get Final Array
Dim fArray As Long()()
fArray = getFArray(numVars, numCombos, stepNumsArray, jArray)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim xlApp As New excel.Application
Try
Dim xlBook As excel.Workbook = xlApp.Workbooks.Add
Dim xlWS1 As excel.Worksheet = CType(xlBook.Worksheets(1), excel.Worksheet)
xlApp.Visible = True
Dim R As excel.Range
R = xlWS1.Cells.Range("A2:C13")
R.Value = fArray.ToString
xlWS1.SaveAs(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\" & "Test.xlsx")
Catch ex As Exception
MsgBox("Export to Excel Error: " & ex.Message)
Finally
xlApp.Workbooks.Close()
xlApp.Quit()
xlApp = Nothing
End Try