Reputation: 612
I got the Excel file from file-picker as Uint8list, and convert to it File now:
FilePickerResult result = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: ['xlsx'], );
if (result != null)
{ var file = File.fromRawPath(result.files.single.bytes);
}
How I convert it to a Syncfusion XLSIO workbook (fromUint8list or File) for reading data from sheet 0 ? Thanks.
Upvotes: 0
Views: 1120
Reputation: 106
Currently, we don't have support to read Excel using Flutter XlsIO library.
However, you can create Excel files using "syncfusion_flutter_xlsio" library with the following features.
To know more about the "syncfusion_flutter_xlsio" library please refer the following link. https://pub.dev/packages/syncfusion_flutter_xlsio
Upvotes: 2