Skip to content

Does Exceljs support xls file forma ? I test xlsx file ok ,but xls file can not read . #2692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
imtiger opened this issue Feb 15, 2024 · 3 comments

Comments

@imtiger
Copy link

imtiger commented Feb 15, 2024

I first test use a xls file ,file is uploaded as a attachment.

const workbook = new ExcelJS.Workbook(); await workbook.xlsx.readFile(filePath); let worksheet = workbook.worksheets[0];

the worksheet is undefined ,

but i convert xls file to xlsx ,the above code work 。

anyone knows exceljs only work for xlsx ?

thanks for help my friends.

test.excel.xls

@MING1K
Copy link

MING1K commented Mar 25, 2024

I meet the same problem. I use code like this and i can't loading the data.
Do you solve this now

const workbook = new ExcelJs.Workbook()
await workbook.xlsx.load(data)

@Kento97
Copy link

Kento97 commented Jun 9, 2024

me too

@crane168
Copy link

I meet the same problem. I use code like this and i can't loading the data. Do you solve this now

const workbook = new ExcelJs.Workbook()
await workbook.xlsx.load(data)

yes, I meet the same question and you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants