Hi, if it is possible how could I use the Flexible Table class to download and display an Excel workbook?
Table1.LoadExcel(File.DirAssets, "test.xls", True)
Private Workbook1 As ReadableWorkbook
Private Sheet1 As ReadableSheet
Workbook1.Initialize(File.DirAssets, "test.xls")
Sheet1 = Workbook1.GetSheet(0)
Table1.InitializeTable(Sheet1.ColumnsCount, Gravity.CENTER, False)
For row = 0 To Sheet1.RowsCount - 1
Private values(Sheet1.ColumnsCount) As String
For col = 0 To Sheet1.ColumnsCount - 1
values(col) = Sheet1.GetCellValue(col, row)
Next
If row = 0 Then
Table1.SetHeader(values)
Table1.SetAutomaticWidths
Else
Table1.AddRowAutomaticWidth(values)
End If
Next
Instead of this line:I'm generally trying to avoid horizontal scrolling and have the width of the entire table fit the screen size.
Table1.LoadExcel(File.DirAssets, "test.xls", False)
Private NbCols As Int
NbCols = Table1.NumberOfColumns
Private Widths(NbCols) As Int
For i = 0 To NbCols - 1
Widths(i) = Table1.Width / NbCols
Next
Table1.SetColumnsWidths(Widths)