ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

Definition cell name cannot be saved to excel file #94

Closed zopxy closed 4 years ago

zopxy commented 4 years ago
var _script = "";
_script += "var oSheet = Api.GetActiveSheet();\r\n";
_script += "oSheet.AddDefName('def_xxxxx', '表格1!$A$8', false);\r\n";
_script += "var active = oSheet.GetActiveCell();\r\n";
_script += "var row = active.GetRow();\r\n";
_script += "var col = active.GetCol();\r\n";
_script += "oSheet.GetRangeByNumber(row, col).SetValue('{{测试}}');\r\n";
window.Asc.plugin.executeCommand("command", _script);

The name manager is displayed successfully. But reopen this file will not exist "def_xxxxx"。

version: 5.4.2-46 thanks

ShockwaveNN commented 4 years ago

@flaminestone please take a look

flaminestone commented 4 years ago

@bopro, I can not to reproduce this issue, all works fine. Can you attach file before and after executing?

ShockwaveNN commented 4 years ago

This issue was closed due to no response.