EdisonJpp / react-export-table-to-excel

It allows you to export an HTML table just by sending the table reference and the name with which you want the file to be saved. It gives you two options; a hook and a component ... you use whichever one best suits your goal
41 stars 12 forks source link

Is there a way to reformat to xlsx? #5

Open lucasdale99 opened 2 years ago

lucasdale99 commented 2 years ago

I've successfully added this to our project for several different tables. However upon downloading, we receive this error message: image

It still works correctly, but is there a way to default the download to xlsx?

Thanks

EdisonJpp commented 2 years ago

actually there aren't ways to add another extension, we're working on that for the next version

miguel2m commented 1 year ago

I agree.

migl1900 commented 1 year ago

I used the Method version and it worked beautifully. Only downside is the xls-output so a migration to xlsx would be highly appreciated.

wade790720 commented 1 year ago

isn't support typescript? export alway undefined :'(

ashkankiani commented 1 year ago

please xls to xlsx Faster

ashkankiani commented 1 year ago

Please make the xlx to xlxs conversion faster in the new version. If you can guide me to do it myself. change "application/vnd.ms-excel" to "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" and filename changed But not worked.

ashkankiani commented 1 year ago

I checked a lot and tested a lot of libraries. But the best library is in the following two ways: 1- Use of data 2- Using HTML Tag

The library was sheetjs. which works well for vuejs, nextjs, react frameworks.

https://docs.sheetjs.com

barisdevjs commented 1 year ago

I've successfully added this to our project for several different tables. However upon downloading, we receive this error message: image

It still works correctly, but is there a way to default the download to xlsx?

Thanks

I also have the same issue can you solve the issue or find another way to fix this @lucasdale99 @EdisonJpp image

Lala-kumar commented 4 months ago

I checked a lot and tested a lot of libraries. But the best library is in the following two ways: 1- Use of data 2- Using HTML Tag

The library was sheetjs. which works well for vuejs, nextjs, react frameworks.

https://docs.sheetjs.com

Thanks Man it worked

tanusha-tanya commented 2 months ago

the file /lib/lib.js on line 72 there should be a file extension .xlsx instead of .xls