Toad World® Forums

How to run Generate.js (from documentation) via nodejs

Toad Data Modeler 7.2

I'm getting:

var App = new ActiveXObject("TDM.App");
ReferenceError: ActiveXObject is not defined
at Object. (c:\Work\TDM\Script\generate.js:7:11)
e[90m at Module._compile (node:internal/modules/cjs/loader:1108:14)e[39m
e[90m at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)e[39m
e[90m at Module.load (node:internal/modules/cjs/loader:973:32)e[39m
e[90m at Function.Module._load (node:internal/modules/cjs/loader:813:14)e[39m
e[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)e[39m
e[90m at node:internal/main/run_main_module:17:47e[39m

Hi Anatoliy,
do you have already registered TDM application as ActiveX? If not please try to run cmd command " TDM.exe /regserver".