This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 to download on client? #354
Comments
Hello, looking for the same feature. Please update |
Yes it is possible.
res.attachment("test.xlsx")
workbook.xlsx.write(res)
.then(function() {
res.end()
}); Here res is the response to the client |
Hi, everyone, Thanks, Paul |
I think the previous commenter might have been confused about what was being asked. |
Same here, I'm using angular, I have all I need in the client, it would be great if I could just download the file right from the client. So far all I've found has node's "res" |
Hi,
The following code works for me:
```js
workbook.xlsx.writeBuffer().then(function (data) {
var blob = new Blob([data], {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});
saveAs(blob, “fileName.xlsx");
});
```
“saveAs” … I used “FileSaver.js”.
Best,
<http://pleger.cl/>
… On 29Aug, 2017, at 16:02, rojasjandro89 ***@***.***> wrote:
Same here, I'm using angular, I have all I need in the client, it would be great if I could just download the file right from the client. So far all I've found has node's "res"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#354 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAq364JF88S7Zqf4eYVGo2gKPRtDQ-JTks5sdGBCgaJpZM4ON8rB>.
|
It works for me too. Thanks a lot! |
Hi, |
@pleger do you example on how to download excel? i already used res.download. but still cant download the file. But it can do write excel |
I hope the following code can help you! extract from http://pleger.cl/gp
|
Thanks you so much! |
It works for me
|
@LiHaoGit 好啊 我正在用这个插件 可是一直下载不了 能不能加个qq 咨询一下 |
|
To download on browser.
|
@LiHaoGit hi,how to receive and turn the data to excel file when you send data like this? |
res.status(200); |
I had to change |
Someone could do this sending the buffer from the backend (Node) ? |
Hello, I'm using calling data list and header like this: Could you please suggest me how can I map my data with the proper header. |
What about client side implementation? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Is there a way, how to create a XLSX on a client and download it (send it as download file) without saving it or interacting with a server?
The text was updated successfully, but these errors were encountered: