node-activex icon indicating copy to clipboard operation
node-activex copied to clipboard

Winax with Outlook

Open ketomagasaki opened this issue 3 years ago • 1 comments

Hello,

I am trying to use Winax on Outlook. The goal is to browse the mails in addresses. I start with:

var obOutlook = new ActiveXObject ('Outlook.Application');
var obNameSpace = obOutlook.GetNameSpace ('MAPI');

Then:

var obBoite = obNameSpace.Folders (‘[email protected] ’);

Node.js closes directly without an error message. Do you have sample code to browse email addresses open in Outlook.exe?

Thank you

ketomagasaki avatar Jun 23 '21 16:06 ketomagasaki

You have to use a require clause. If you don't, node says ReferenceError: ActiveXObject is not defined If you do, there is no errors, and node exits normaly when your script ends. you should add a console.log as last line.

You should search the Internet for code doing what you want with the Outlook ActiveX, either in VBA or in Javascript, and validate the code witch cscript.exe

Then try with winax, and open issue if you found problems.

That particular issue should be Closed!

somanuell avatar Jan 15 '22 13:01 somanuell