Reflection always returns typename as [closed]

asked 2017-08-30 01:48:51 +0200

Zev Spitz gravatar image

updated 2020-08-05 23:41:58 +0200

Alex Kemp gravatar image

The following lines of Javascript, running under CScript on Windows 10 Professional (LibreOffice always outputs, no matter what object I pass to the getType method:

var objServiceManager = new ActiveXObject('');
var objDesktop = objServiceManager.createInstance("");
var objDocument = objDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, []);
var objCoreReflection = objServiceManager.createInstance("");
var classInfo = objCoreReflection.getType(objDocument);
classInfo = objCoreReflection.getType(objDesktop);
// outputs twice

How can I find out the actual type?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-08-05 23:41:37.673659