Passing custom function into callCommand method

As shown in the attached image, we can’t pass a custom function through Asc.scope. However, I still want to pass a function into callCommand. How can I achieve that?

Hello @ZangHoang,
Unfortunately, there is no way to pass a custom function to callCommand.
What is the use-case scenario?
Additionally, provide an example of the function that you’d like to pass - for reference

Just pass function as string and then use eval().

1 Like

@malubimcev Thank you for sharing, it is indeed a good workaround