Posted 16 June 2020, 11:43 pm EST
Hi Team,
I am currently trying to programmatically copy content for Spreadsheet JSON. But the problem is it is copying data but is not retrieving cell related info like merge cell data, height, width of cell etc.
Below is my sample code.
editJsonData(){
//testfiledata2 contains SSJSON
let newWorkbookObj = testfiledata2;
this.spreadsheet.fromJSON(newWorkbookObj)
// Inserted 6 rows
this.spreadsheet.getActiveSheet().addRows(14, 6)
// trying to paste data available in row (8-12) to row (13-17)
for (let index = 8; index < 13; index++) {
newWorkbookObj.sheets[‘page02’].data.dataTable[index + 7] = newWorkbookObj.sheets[‘page02’].data.dataTable[index]
}
this.spreadsheet.fromJSON(newWorkbookObj)
}