More than 3000 items exporting to excel issue in chrome

by sunil kammela   Last Updated September 11, 2019 08:24 AM

i am trying to export the records to the excel. Here i have more than 3000 records. When i have below 3000 records it was exporting and saving. But if i have more than 3000 records i am facing the issue. while saving Failed - network error is coming.

Used below code to export the records to excel.

function SaveContents(element, filename) { if (window.Blob && window.navigator.msSaveOrOpenBlob) { var blob = new Blob([element], { type: 'data:application/vnd.ms-excel' }); window.navigator.msSaveBlob(blob, filename + '.xls'); } else { var a = document.createElement('a'); document.body.appendChild(a); a.href = 'data:application/vnd.ms-excel;charset=utf-8,%EF%BB%BF' + encodeURIComponent(element); a.download = filename + ".xls"; a.click(); } }

Please give a solution to this.



Related Questions


Updated June 10, 2019 05:24 AM

Updated November 26, 2018 17:24 PM

Updated December 28, 2016 08:10 AM

Updated August 30, 2018 14:24 PM

Updated February 16, 2019 10:24 AM