-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win32ole processes still running #11
Comments
Oh dear, I'm afraid this works for me, so I have been unable to reproduce your problem :-( var win32ole = require('win32ole');
var xl = win32ole.client.Dispatch('Excel.Application');
xl.Visible = false;
xl.DisplayAlerts = false;
xl.ScreenUpdating = false;
xl.EnableEvents = false;
var book = xl.Workbooks.Open("c:\\temp\\Worksheet.xlsx");
book.Saved = true;
xl.Workbooks.Close();
xl.Quit(); No stray instances of EXCEL.exe lurking around. |
I was reproduced with the following code:
result
node -v |
OLE error: [ocrVcodeInit] -2147352567 [ocrVcodeInit] = [1610809344] (It always s
eems to be appeared at that time you mistake calling 'obj.get { ocv->getProp() }
' <-> 'obj.call { ocv->invoke() }'.) IDispatch::Invoke AutoWrap() failed
TypeError: node_win32ole::V8Variant::OLEInvoke failed hi ,i have this problem . but the component seem work well in the same PC, but simple other code .is there anybody who know the problem . |
Anyone solved the errors yet ? Been getting the similar error. |
I've noticed that when using win32ole to access Excel, I still have "EXCEL.EXE" processes showing in Windows Task Manager. It seems that xl.Quit(); doesn't actually close the application. Here is an example of what I'm doing:
I've tried forcing garbage collection as well with no change in behavior. Also, after two cycles of opening and closing the excel workbook, I get the following error on the third and all subsequent attempts:
The text was updated successfully, but these errors were encountered: