Export To Jagged Array - VB.NET
Spreadsheet SDK sample in VB.NET demonstrating ‘Export To Jagged Array’
Module1.vb
Module Module1
Sub Main()
Dim inputFile As String = "StockPricesSpreadsheet.xls"
'Open and load spreadsheet
Dim spreadsheet = New Spreadsheet()
spreadsheet.LoadFromFile(inputFile)
'Get the data from the spreadsheet
Dim stockPrices()() As String = spreadsheet.ExportToJaggedArray()
'Close spreadsheet
spreadsheet.Close()
'Display data in jagged array
For i As Integer = 0 To stockPrices.GetLength(0) - 1
Console.Write(stockPrices(i)(0) + " ")
Console.Write(stockPrices(i)(1) + " ")
Console.WriteLine()
Next
'Pause
Console.ReadLine()
End Sub
End Module
Resources.Designer.vb
��' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
' <