DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

An error has occurred while execute Macros script

Open larrychen8276 opened this issue 3 years ago • 3 comments

Do you want to request a feature or report a bug? bug

What is the current behavior? I'm on the 7.2.0.152 docker image(docker pull onlyoffice/4testing-documentserver:7.2.0.152) execute Macros script, I get the following error 44

1、through (build_tools) script install DocumentServer 7.1.1, 2、download (sdkjs-7.2.0.151.tar.gz、server-7.2.0.151.tar.gz、web-apps-7.2.0.151.tar.gz), replace (sdkjs、server、web-apps) folders , insert Tables, execute Macros script, I get the following error

33

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior? 1、through (build_tools) script install DocumentServer 7.1.1, 2、download (sdkjs-7.2.0.151.tar.gz、server-7.2.0.151.tar.gz、web-apps-7.2.0.151.tar.gz), replace (sdkjs、server、web-apps) folders , execute Macros script, display like follow 11

22

Did this work in previous versions of DocumentServer?

DocumentServer version: 7.2.0.152 7.1.1 Operating System: Ubuntu

Browser version: Chrome Version 104.0.5112.81

larrychen8276 avatar Aug 19 '22 06:08 larrychen8276

Hi, is there any particular reason why you've used v7.2.0? Its in development stage and may contain any number of error

Could you share you macros in text form, not on screenshot

ShockwaveNN avatar Aug 19 '22 06:08 ShockwaveNN

Hi, is there any particular reason why you've used v7.2.0? Its in development stage and may contain any number of error

Could you share you macros in text form, not on screenshot

i want to use the new API, through macros script import、export、create、copy Presentation

var p = Api.GetPresentation();
var json = p.ToJSON();
Api.FromJSON(json);

larrychen8276 avatar Aug 19 '22 07:08 larrychen8276

@larrychen8276 thanks for the issue. Created a bug #58616 in our private tracker

askonev avatar Aug 19 '22 11:08 askonev