Hi I try to edit my excel file.
But there are problems with editing styles.
let workbook = new excel.Workbook(); workbook.xlsx.readFile(old.xlsx).then(function () { let lineFont = worksheet.getCell(A14).font; lineFont['bold'] = true; worksheet.getCell(A14).font = lineFont; workbook.xlsx.writeFile(new.xlsx).then(function(){ }) })
As a result, in addition to modifying the specified cell, other cells are also changed.
Does anybody have the same problem?
Hi I try to edit my excel file.
But there are problems with editing styles.
let workbook = new excel.Workbook(); workbook.xlsx.readFile(old.xlsx).then(function () { let lineFont = worksheet.getCell(A14).font; lineFont['bold'] = true; worksheet.getCell(A14).font = lineFont; workbook.xlsx.writeFile(new.xlsx).then(function(){ }) })As a result, in addition to modifying the specified cell, other cells are also changed.
Does anybody have the same problem?