Reflection always returns typename as

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

Zev Spitz 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 close merge delete