Js代码怎么执行宏代码,或者调用宏呢?

js代码怎么执行宏代码,或者调用宏呢?还有GlobalVariable怎么获取呢?提示GlobalVariable is not defined

哈喽!
我们正在解决您的问题,请您耐心等待。

你好!

在这个链接中,您可以查看我的同事如何解释正确使用GlobalVariable函数- https://forum.onlyoffice.com/t/insert-data-of-excel-into-document-or-powerpoint-at-particular-page-or-slide/4594/2

我理解你正在使用这个功能,是吧? - https://api.onlyoffice.com/docbuilder/howitworks/globalvariable

如果我同事的说明没有帮助到您,且这确实是 Document Builder 中的一个功能,请将您正在运行的脚本发送给我们。

Hello!
Sorry for the delay in my response.

I would recommend you trying to use Content Controls for that. Since as i can see, this is the best solution for now.

You can put the File-B inside of the Content Control, by setting the link to it in URL parameter - ONLYOFFICE Api Documentation - InsertAndReplaceContentControls and ONLYOFFICE Api Documentation - Global type definitions

With the InsertAndReplaceContentControls method you can achieve the scenario that you need. Also, i would recommend you to check out the Work with Content Controls content example here - sdkjs-plugins/example_work_with_content_controls at master · ONLYOFFICE/sdkjs-plugins · GitHub

老哥这个问题解决了没