Skip to content

CSV export resulting in error for .xlsx #1249

Closed
@g-akshay

Description

@g-akshay

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
image

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

image
image

Whats blobType is supported for .xls or .xlsx extension?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions