We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get this error when trying to set window.location to result.href() but only in IE. Everything works fine in Chrome or Firefox.
var data_arr = factory.prepareData(data, coldefs); var sheet = { creator: userCredentials.Name, lastModifiedBy: userCredentials.Name, worksheets: [ { data: data_arr, table: true, name: name } ] }; window.location = xlsx(sheet).href();
is how i'm creating the sheet.
The text was updated successfully, but these errors were encountered:
+1 please
Sorry, something went wrong.
i am also facing the same problem (Only In IE). Did you find any workaround for this?
I've worked around the problem by getting the base64 and turning it into a blob using this function:
factory.b64toBlob = function (b64Data, contentType, sliceSize) { contentType = contentType || ''; sliceSize = sliceSize || 512; var byteCharacters = atob(b64Data); var byteArrays = []; for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) { var slice = byteCharacters.slice(offset, offset + sliceSize); var byteNumbers = new Array(slice.length); for (var i = 0; i < slice.length; i++) { byteNumbers[i] = slice.charCodeAt(i); } var byteArray = new Uint8Array(byteNumbers); byteArrays.push(byteArray); } var blob = new Blob(byteArrays, {type: contentType}); return blob; };
And then saving it using a FileSave script.
No branches or pull requests
I get this error when trying to set window.location to result.href() but only in IE. Everything works fine in Chrome or Firefox.
is how i'm creating the sheet.
The text was updated successfully, but these errors were encountered: