Skip to content
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

com - onenote minimal example #67

Open
mantielero opened this issue Mar 22, 2021 · 0 comments
Open

com - onenote minimal example #67

mantielero opened this issue Mar 22, 2021 · 0 comments

Comments

@mantielero
Copy link

mantielero commented Mar 22, 2021

What would it be a winim/com minimal example for the OneNote case?

It looks like in python;

import win32com.client
onObj = win32com.client.gencache.EnsureDispatch('OneNote.Application.12')
result = onObj.GetHierarchy("",win32com.client.constants.hsNotebooks)
print(result)  

But in nim:

import winim/com

comScript:
  var obj = CreateObject("OneNote.Application.15")
  var tmp = obj.GetHierarchy("", 1)  # This gives me an error also
  COM_FullRelease()

gives me the following error message:

Error: unhandled exception: unsupported method: GetHierarchy [COMError]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant