Posted 21 July 2023, 5:29 pm EST
Hello,
We are attempting to copy data from cells (formulas/formatting/values) from one SpreadJS instance to another SpreadJS instance. In the “destination” SpreadJS instance where the focus is, we have our “source” SpreadJS worksheet that’s been imported via json. We’d like to programmatically copy a range from the source to the destination worksheet.
Here is what we have tried:
destinationWorkBook.commandManager().execute({
cmd: "clipboardPaste",
sheetName: sourceSheet.name(),
fromSheet: sourceSheet,
fromRanges: fromRange,
pastedRanges: toRange,
isCutting: false,
clipboardText: "",
pasteOption: GC.Spread.Sheets.ClipboardPasteOptions.all
});
So far nothing is pasted.
Thanks,
Cody
