Export To List - VB.NET
Spreadsheet SDK sample in VB.NET demonstrating ‘Export To List’
Module1.vb
Module Module1
Sub Main()
Dim inputFile As String = "ListOfPlanetsSpreadsheet.xls"
'Open and load spreadsheet
Dim spreadsheet As Spreadsheet = New Spreadsheet()
spreadsheet.LoadFromFile(inputFile)
'Get the data from the spreadsheet
Dim planets(10, 2) As String
spreadsheet.ExportToList(planets)
'Close spreadsheet
spreadsheet.Close()
'Display array
Dim planetsArray(,) As String = planets
For i As Integer = 0 To planetsArray.GetLength(0) - 1
For j As Integer = 0 To planets.GetLength(1) - 1
Console.Write(planetsArray(i, j) + " ")
Next
Console.WriteLine()
Next
'Pause
Console.ReadLine()
End Sub
End Module
Resources.Designer.vb
��' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
' <