Reading excel files.
For now, only xlsx files can be read.
var excel = ExcelFile.open_file("xlsx file path")
var workbook = excel.get_workbook()
var sheet = workbook.get_sheet(0)
# Or use the following line, where two lines of code are equivalent
#var sheet = workbook.get_sheet("sheet1") as ExcelSheet
var table_data = sheet.get_table_data()
print(JSON.stringify(table_data, "\t"))
# Output by row and column
var table_data = sheet.get_table_data()
for row in table_data:
var column_data = table_data[row]
for column in column_data:
print(column_data[column])
Any contributions is welcome! If you find any bugs, please report in issues
.