node-activex
node-activex copied to clipboard
Type not matching
I'm trying to call this function: http://help.seagullscientific.com/2016/de/Subsystems/ActiveX/ActiveX.htm#XMLScript.htm%3FTocPath%3DReference%7CApplication%2520Object%7CApplication%2520Methods%7C_____8 and I keep getting Error: DispInvoke: XMLScript type mismatch (errno 2147352571)
I think it's probably due to the BarTender.Messages by reference, but I cant reproduce it on js. Just an example:
let btApp = new winax.Object('BarTender.Application');
let data = new winax.Variant();
let refdata = new winax.Variant(data, "byref");
btApp.XMLScript('some XML string', 2, refdata);
Any suggestions?
-- Edit I found that on python comtypes i could execute the command without the last argument, doing somenthing like:
from comtypes.client import GetModule
GetModule("C:\\Path\\To\\bartend.exe")
from comtypes.gen import BarTender
from comtypes.client import CreateObject
app = CreateObject(BarTender.Application)
app.XMLScript("foo", 0)
See here for full code explanation, maybe its the way winax is handling the output
Try other integer types(int8, uint8, int16, ...) for the value of the enumeration: btApp.XMLScript(command, new winax.Variant(2,'int16'), refdata);
чт, 23 авг. 2018 г. в 23:16, Matheus Marques [email protected]:
I'm trying to call this function: http://help.seagullscientific.com/2016/de/Subsystems/ActiveX/ActiveX.htm#XMLScript.htm%3FTocPath%3DReference%7CApplication%2520Object%7CApplication%2520Methods%7C_____8 and I keep getting Error: DispInvoke: XMLScript type mismatch (errno 2147352571)
I think it's probably due to the BarTender.Messages by reference, but I cant reproduce it on js. Just an example:
let btApp = new winax.Object('BarTender.Application');let data = new winax.Variant();let refdata = new winax.Variant(data, "byref");btApp.XMLScript(command, 2, refdata);
Any suggestions?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/durs/node-activex/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjGNeeiu42JH3ZksDTYToQHk08enSQ3ks5uTw2ugaJpZM4WKR1_ .