Corrupt xlsx file when downloading from express js, but work fine on file system. #366
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#366
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I am trying to create export to xlsx and csv functionality in MEAN stack below is my code
When I use only
XLSX.writeFile(wb, 'test11.xlsx');
it creates file and that is getting opened in MS OFFICE 2013 but when I writeres.download('test11.xlsx');
after writeFile line then its getting downloaded but on the open its show file is corrupt message.Please guide me! Any working code with expressjs will be great!
Thanks,
TM
Perhaps try using
buffer
rather thanbase64
? The following works for me in Express 3 and 4:can you please share with that export to xlsx function, so I can use in my code. I am still not getting it working. I am calling NodeJS api from angularjs.
@TejasCMehta are you trying to generate the XLSX file in the client or in the server?
I used a similar version of this code, but with a little modifications