Copy in code

Posted by: mikebamm on 19 December 2017, 1:12 pm EST

  • Posted 19 December 2017, 1:12 pm EST

    I’m trying to initiate copy in code so I can paste to excel from spread js.

    I saw code example for paste but not for copy.

    This is my code:

    let spreadsheetWorkbook = new GC.Spread.Sheets.Workbook(element[0], {sheetCount: 1, allowCopyPasteExcelStyle: true});

    spreadsheetWorkbook.getWorkbook().commandManager().execute({cmd: “copy” });

    Providing more options (sheetName, fromSheet etc) also does not work.

    Thank you

  • Posted 20 December 2017, 6:38 am EST

    Hello,

    You can use the code given here to perform copy and paste in code:

    http://help.grapecity.com/spread/SpreadSheets11/webframe.html#sccopy.html

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels