Hello all, I'm trying to use Activex for Chrome to open Outlook, and I'm having a problem. I have Office 2010 installed. Here's the code:
var outlookApp = new ActiveXObject("Outlook.Application");
var mailItem = outlookApp.CreateItem(0);
mailItem.Subject = "test";
mailItem.HTMLBody = "<b>test body</b>";
mailItem.display (0);
Here's the output I get in chrome's console:
Dynamic create Outlook.Application inject_start.js:2
BeforeLoading inject_start.js:2
Found objects created by client scripts inject_start.js:2
0x00af0de0 axhost.cpp:468 AxHost.setClsIDFromProgID: PROGID Outlook.Application resolved and set inject_start.js:2
0x00af0de0 FakeDispatcher.cpp:83 Disp 0x038931d8 Type: [object HTMLDocument], Name: inject_start.js:2
0x00af0de0 axhost.cpp:556 AxHost.CreateControl: control created successfully inject_start.js:2
0x00af0de0 npactivex.cpp:460 00af0de0 AxHost.NPP_New: Create control finished inject_start.js:2
Uncaught TypeError: Object [object Object] has no method 'CreateItem' myfile.js:273
Anyone know what the problem could be?