acmepjz / godot-excel-reader

Reading excel files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin Logo

Godot Excel Reader

Godot Engine 4.0.2 MIT license

Reading excel files.

For now, only xlsx files can be read.


Example

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])

Contribute

Any contributions is welcome! If you find any bugs, please report in issues.

About

Reading excel files

License:MIT License


Languages

Language:GDScript 100.0%