Open LeachBogdan opened 10 years ago
+1 please
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.
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.