-
Notifications
You must be signed in to change notification settings - Fork 268
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
How client download excel file implement #20
Comments
try window.open(replaceWithYourUrl); On Mon, Sep 29, 2014 at 4:49 AM, nvcken [email protected] wrote:
|
@functionscope but not work, file open corrupt. What I am wrong |
If I do the same with csv file it work |
check out this link On Sep 29, 2014 7:57 AM, "nvcken" [email protected] wrote:
|
Hi, Me also meet this issue after spent long time I found solution, It is working for me.
Enjoy |
My server code
var file = fs.readFileSync('./res_report/output/out.xlsx', 'binary');
res.setHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
res.setHeader('Content-Disposition', "attachment; filename=" + "out.xlsx")
res.end(file, 'binary');
How client javascript download excel file
The text was updated successfully, but these errors were encountered: