Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- //const fileblob = new Blob([text], { type: 'text/plain' });
- var zip = new JSZip();
- //zip.file(pgrange.values[0][0], fileblob);
- zip.file("Hello.txt", "Hello Worldn");
- var zippromise = zip.generateAsync({ type: "nodebuffer" });
- OfficeHelpers.UI.notify("hello all");
- zippromise.then(function () {
- OfficeHelpers.UI.notify("success")
- // FileSaver.saveAs(content, "example.zip");
- }).catch((error) => {
- OfficeHelpers.UI.notify(error)
- });
- } catch (err) {
- OfficeHelpers.UI.notify(err)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement