when I create a sheet with 49 columns, it can only fill the first 20000 rows.
this is the code:
var xlsx = require('xlsx');
var workbook = xlsx.readFile('template.xlsx');
var alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var sheet = workbook.Sheets[workbook.SheetNames[0]];
//console.log(sheet.A1.v);
console.log(new Date());
for (var i = 2; i < 100000; i++) {
for (var j = 0; j < 26; j++) {
var str = Math.floor(Math.random() * 1E+10).toString();
str += Math.floor(Math.random() * 1E+10).toString();
sheet[alpha[j] + i] = {v: str, t: 's'};
}
for (; j < 49; j++) {
var str = Math.floor(Math.random() * 1E+10).toString();
str += Math.floor(Math.random() * 1E+10).toString();
sheet['A' + alpha[j - 26] + i] = {v: str, t: 's'};
}
}
xlsx.writeFile(workbook, 'rand.xlsx');
console.log(new Date());
when I create a sheet with 49 columns, it can only fill the first 20000 rows.
this is the code: