eligrey / eligrey/FileSaver.js
CSV export resulting in error for .xlsx
- Dominant language
- JavaScript
- Stars
- 22k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
Getting the following error when trying to use `.xlsx` extension.
> Excel cannot open the file 'ManageRides (1).xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
I am using the following code: (commented ones are also being tried)
`exportCSV={{
fileName: 'filename.xlsx',
blobType: "data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"
//blobType: "data:text/csv;charset=utf-8"
//blobType: "data:text/csv;charset=UTF-8,%EF%BB%BFs"
}}`
**Screenshots**

On using the `.xls` extension, whole row data is shown in the first cell and no column segregation happens.


Whats `blobType` is supported for `.xls` or `.xlsx` extension?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.